# WebDev return PDF with file name

**URL:** <https://forum.inductiveautomation.com/t/webdev-return-pdf-with-file-name/45055>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 30, 2021, 2:27pm UTC](https://forum.inductiveautomation.com/t/webdev-return-pdf-with-file-name/45055 "2021-03-30T14:27:26Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [March 30, 2021, 5:12pm UTC](https://forum.inductiveautomation.com/t/webdev-return-pdf-with-file-name/45055/5 "2021-03-30T17:12:03Z")

</div>

> [@paul-griffith](#):
>
> request["servletResponse"].addHeader('contentDisposition', 'attachment; filename="{}"'.format(ticketNum))

You got me down the right path.

```auto
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!

---

_[View the full topic](https://forum.inductiveautomation.com/t/webdev-return-pdf-with-file-name/45055)._
