# Saving from the PDF Viewer Component

**URL:** <https://forum.inductiveautomation.com/t/saving-from-the-pdf-viewer-component/2274>\
**Category:** Ignition\
**Created:** [October 19, 2010, 4:33pm UTC](https://forum.inductiveautomation.com/t/saving-from-the-pdf-viewer-component/2274 "2010-10-19T16:33:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Gavin](https://forum.inductiveautomation.com/u/Gavin)\
**Post date:** [October 19, 2010, 4:33pm UTC](https://forum.inductiveautomation.com/t/saving-from-the-pdf-viewer-component/2274/1 "2010-10-19T16:33:34Z")

</div>

At the moment we generate pdf reports using the Report Viewer component. Users can then view these reports via the PDF viewer component. Is there any similar function in the PDF viewer component similar to the ‘getBytesPDF’ function in the Report Viewer component, such that a user can save a file locally to their hard drive?

Or is there any other easier way to save these reports locally if they are available via the Servers URL address?

Thanks,  
Gavin

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [October 19, 2010, 6:03pm UTC](https://forum.inductiveautomation.com/t/saving-from-the-pdf-viewer-component/2274/2 "2010-10-19T18:03:08Z")

</div>

The PDF viewer does not have that function. However, you can use the `bytes = system.file.readFileAsBytes(filename)`to get the bytes from a file.
