# Adding PIL Library to Ignition

**URL:** <https://forum.inductiveautomation.com/t/adding-pil-library-to-ignition/26887>\
**Category:** Ignition\
**Created:** [July 25, 2019, 5:54pm UTC](https://forum.inductiveautomation.com/t/adding-pil-library-to-ignition/26887 "2019-07-25T17:54:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter.Dmitriev](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Peter.Dmitriev](https://forum.inductiveautomation.com/u/Peter.Dmitriev)\
**Post date:** [July 25, 2019, 5:54pm UTC](https://forum.inductiveautomation.com/t/adding-pil-library-to-ignition/26887/1 "2019-07-25T17:54:47Z")

</div>

Hello,

We have an inspection machine (with Ignition HMI) that generates a lot of png files. I’m tasked to put these images in a multi-page pdf for each serial number and move them to other location. I’m trying to figure out how to do it in Ignition.

While googling I came across [this](https://stackoverflow.com/questions/27327513/create-pdf-from-a-list-of-images) discussion. There is example using PIL module that I want to implement in Ignition.

PIL can only be [downloaded](http://www.pythonware.com/products/pil/) as exe file and requires python 2.7 to be installed. So I’ve installed 2.7 then PIL. I then copied PIL folder and PIL.pth file from **C:\Python27\Lib\site-packages** to **C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\site-packages** but that didn’t work.

What is a proper way to install third party packages in Ignition?

Perhaps, there is another way to create multi-page pdf from set of images in Ignition?

Any help is appreciated!

Thank you,  
Peter

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [July 25, 2019, 6:53pm UTC](https://forum.inductiveautomation.com/t/adding-pil-library-to-ignition/26887/2 "2019-07-25T18:53:31Z")

</div>

Create a report that displays images from a dataset. You can fill that dataset through script.

---

<div class="post-metadata">

**Author:** ![Peter.Dmitriev](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Peter.Dmitriev](https://forum.inductiveautomation.com/u/Peter.Dmitriev)\
**Post date:** [July 25, 2019, 7:11pm UTC](https://forum.inductiveautomation.com/t/adding-pil-library-to-ignition/26887/3 "2019-07-25T19:11:42Z")

</div>

That sounds like a good idea @jpark, I’ll give it a try. Thank you.
