# WebDev Python Resources, Display PDF in Perspective PDF Viewer or IFrame

**URL:** <https://forum.inductiveautomation.com/t/webdev-python-resources-display-pdf-in-perspective-pdf-viewer-or-iframe/55358>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [January 25, 2022, 3:35pm UTC](https://forum.inductiveautomation.com/t/webdev-python-resources-display-pdf-in-perspective-pdf-viewer-or-iframe/55358 "2022-01-25T15:35:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 25, 2022, 4:10pm UTC](https://forum.inductiveautomation.com/t/webdev-python-resources-display-pdf-in-perspective-pdf-viewer-or-iframe/55358/2 "2022-01-25T16:10:29Z")

</div>

From Webdev you just need to load your PDF bytes in some way and add the appropriate headers to the response, e.g.:

> [@WebDev return PDF with file name](https://forum.inductiveautomation.com/t/webdev-return-pdf-with-file-name/45055/5):
>
> You got me down the right path. request["servletResponse"].addHeader('Content-Disposition', 'attachment; filename="{}.pdf"'.format(ticketNum)) Time to read up on the HttpServletResponse object in case this customer wants anything else. Sigh. Thanks for the help!

From Perspective you should just need to pass the path to your webdev endpoint (`/system/webdev/$project/$path`).

---

_[View the full topic](https://forum.inductiveautomation.com/t/webdev-python-resources-display-pdf-in-perspective-pdf-viewer-or-iframe/55358)._
