# Adding pdf document in vision

**URL:** <https://forum.inductiveautomation.com/t/adding-pdf-document-in-vision/92137>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 20, 2024, 5:13am UTC](https://forum.inductiveautomation.com/t/adding-pdf-document-in-vision/92137 "2024-06-20T05:13:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [June 20, 2024, 5:13am UTC](https://forum.inductiveautomation.com/t/adding-pdf-document-in-vision/92137/1 "2024-06-20T05:13:53Z")

</div>

Hi,

I would like to add a user manual for the vision application that can be downloaded by clicking a button.

Is there a way to do this?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [June 20, 2024, 5:50am UTC](https://forum.inductiveautomation.com/t/adding-pdf-document-in-vision/92137/2 "2024-06-20T05:50:29Z")

</div>

I usually store user resources as blobs in a database. For this use case, simply use the action performed event handler of a button to retrieve the file from the database, and use [system.file.writeFile](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-file/system-file-writeFile) to save the file locally.

---

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [July 2, 2024, 6:32am UTC](https://forum.inductiveautomation.com/t/adding-pdf-document-in-vision/92137/3 "2024-07-02T06:32:03Z")

</div>

I did the same thing as suggested but when i try to open the pdf file from application , it says that the file is corrupted.

EDIT:  
Instead of uploading directly from db, i tried uploading from application and it worked properly.
