Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

Installing a PDF Linker Library


---
 Share

Recommended Posts

---

Hi
I need help installing a Python library to combine pdfs from different reports.
Ultimately, I want to make a script that combines pdf files from several reports into one file and save it under a different name. Each pdf file or page is always to be added to the end of the file ready to be save as. 
I work on GOM Scanbox 6, Atos 2020 and 2022

potrzebuję pomocy przy instalacji biblioteki Pythona do łączenia plików PDF z różnych raportów.
Docelowo chcę zrobić skrypt, który łączy pliki pdf z kilku raportów w jeden plik i zapisuje go pod inną nazwą. Każdy plik pdf lub strona musi być zawsze dodawana na końcu pliku gotowego do zapisania.
Pracuję na GOM Scanbox 6, Atos 2020 i 2022

Link to comment
Share on other sites

---

Please sign in to view this username.

Can you output the reports as an Excel CSV file? Going to be harder with PDF. You can strip PDF to text, but the format is all over the place. Do you know how to work with Microsoft PowerShell?

 

Link to comment
Share on other sites

---

Hello,
@DWC Unfortunately the reports must be in a pdf file, because the contain text and graphics. The computer is an Atos workstation. I have the full version of Adobe on my office computer. Unfortunately I don't have full Adobe on my workstation and I can't install anything external.

Link to comment
Share on other sites

---

Hello Radosław,

in Inspect 2022 you can install python packages with a right click:

image.thumb.png.a1a2041c43ce3d57f11262809e25d632.png

A quick search showed up "pdfmerge", but I have no experience with this package.

Nanno

Link to comment
Share on other sites

---

Hello Nanno,

Thanks for the help, there is indeed such an option. When I run the script to install the package, I have to provide the path to the package that I want to install and that's  where I have a problem. I don't have an internet connection on this computer. I have to download the package from the net and install it from the local disk, does GOM have the "pypdf" package somewhere?

 

Link to comment
Share on other sites

---

you'll have to download the python wheel then install it with the "local" setting ,

image.png.d0e2e6a45560f8f80843ca9ddb227303.png
Not sure when they added this functionality, in 2020, and 2022 you might have to go use the old method:
(not sure where documentation is at, but you can ref 2023 to figure it out?)

https://zeiss.github.io/zeiss-inspect-app-api/2023/howtos/faq/faq.html#where-is-the-python-installation-used-by-zeiss-inspect-located
 



image.thumb.png.3cb7caedef4705b0e86838fbb24665d6.png


 if your wheel file is located in the current directory, you can run:

pip install your_library.whl


 

Link to comment
Share on other sites

Hello Devon,

Thanks for your help, everything is correct, there is an option to install python locally and I don't have to do the installation using the old method. I will try at the end of the week.

Best regards

R.D

Edited
Link to comment
Share on other sites

 Share

×
×
  • Create New...