# Add .pdf file to Robot log.html file

**URL:** <https://forum.robotframework.org/t/add-pdf-file-to-robot-log-html-file/5218>\
**Category:** Robot Framework\
**Created:** [28 January 2023 05:37 UTC](https://forum.robotframework.org/t/add-pdf-file-to-robot-log-html-file/5218 "2023-01-28T05:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTnRobo](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@TTnRobo](https://forum.robotframework.org/u/TTnRobo)\
**Post date:** [28 January 2023 05:37 UTC](https://forum.robotframework.org/t/add-pdf-file-to-robot-log-html-file/5218/1 "2023-01-28T05:37:07Z")

</div>

Does anyone have suggestions on how to attach a .pdf file to a Robot Framework log.html file such that a user can read view the log file, click on a link and download the .pdf file to their browser? I’ve seen a few examples of how to create hyperlinks but the hyperlinks never produce the file. The page attempts to load and then I get a browser message indicating the file is not present or may have been moved. Is it possible to attach a .PDF file to the log.html file?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [28 January 2023 12:33 UTC](https://forum.robotframework.org/t/add-pdf-file-to-robot-log-html-file/5218/2 "2023-01-28T12:33:48Z")

</div>

Hi @TTnRobo,

\*_ **Disclaimer: I’ve never tried this myself** _ \*

Start with using the [Automatic variable](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#automatic-variables) ${OUTPUT DIR}, as the location to download the pdf file, then it should be in the same location as log.html

Next the [Log](https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log) keyword allows you use html tags, so I guess you could would try either an \<a\> or \<img\> tag

Hopefully that’ll work,

Dave.
