# Print file on server

**URL:** <https://forum.inductiveautomation.com/t/print-file-on-server/14963>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [August 2, 2017, 1:17pm UTC](https://forum.inductiveautomation.com/t/print-file-on-server/14963 "2017-08-02T13:17:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [August 2, 2017, 1:17pm UTC](https://forum.inductiveautomation.com/t/print-file-on-server/14963/1 "2017-08-02T13:17:57Z")

</div>

Hi there!

Ignition 7.9.2

I am trying to allow a user to click a button that will print a file on our server to their local printer. Ideally, I would like to allow the user to be able to use the regular file dialog in order to print the file. How can I do this?

I know that the PDFViewer component has this function built in, but this component incorrectly formats my PDF. I have already contacted Ignition about this issue with formatting and they said they would have a fix by 7.9.5. Until then, I need a workaround.

---

<div class="post-metadata">

**Author:** ![fourmajor](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@fourmajor](https://forum.inductiveautomation.com/u/fourmajor)\
**Post date:** [August 2, 2017, 1:50pm UTC](https://forum.inductiveautomation.com/t/print-file-on-server/14963/2 "2017-08-02T13:50:09Z")

</div>

Does [system.print.createPrintJob](https://docs.inductiveautomation.com/display/DOC79/system.print.createPrintJob) do what you need?

---

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [August 2, 2017, 4:04pm UTC](https://forum.inductiveautomation.com/t/print-file-on-server/14963/3 "2017-08-02T16:04:09Z")

</div>

Can system.print.createPrintJob print a PDF, using the file and not the PDF Viewer?

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [August 3, 2017, 9:24am UTC](https://forum.inductiveautomation.com/t/print-file-on-server/14963/5 "2017-08-03T09:24:26Z")

</div>

Perhaps you can put the pdf in a network share on the server, and then use a subprocess to open the PDF in the standard PDF reader on the clients.

See [https://docs.python.org/2/library/subprocess.html](https://docs.python.org/2/library/subprocess.html) on how to spawn external processes
