# Merging pdf with pypdf2

**URL:** <https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [January 29, 2024, 6:06am UTC](https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871 "2024-01-29T06:06:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vatsal\_Shah](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Vatsal\_Shah](https://forum.inductiveautomation.com/u/Vatsal_Shah)\
**Post date:** [January 29, 2024, 6:06am UTC](https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871/1 "2024-01-29T06:06:22Z")

</div>

I'm willing to work with PyPdf2 library and even installed it properly but facing the following when I try to import it.  
Any help will be appreciated.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/0410ef8b6320c13bba42c210e67e94f1dff3b707.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [January 29, 2024, 8:16am UTC](https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871/2 "2024-01-29T08:16:49Z")

</div>

its generally better to look of java libs, instead of pyhton libs when working in jython.

what are you trying to do?

---

<div class="post-metadata">

**Author:** ![Vatsal\_Shah](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Vatsal\_Shah](https://forum.inductiveautomation.com/u/Vatsal_Shah)\
**Post date:** [January 29, 2024, 8:21am UTC](https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871/3 "2024-01-29T08:21:17Z")

</div>

I have some pdfs with me in the form of Report byte arrays. My end goal is to combine this pdfs.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 29, 2024, 1:28pm UTC](https://forum.inductiveautomation.com/t/merging-pdf-with-pypdf2/84871/4 "2024-01-29T13:28:38Z")

</div>

Consider using the command line version of PDFtk, called from Ignition to work on temporary files, using `ProcessBuilder` to know when done.
