Convert PDF to images in Viktor

I was wondering, how can I use pdf2image in Viktor?

The aim is to convert each page to an image, however this seems to be very strict to the OS used, as well as the PATH. As we work on Windows, this usually gives problems.

Do you have any experience or code snippets how to convert all pages in a pdf to images? (BytesIO)

Thanks in advance

It wasn’t that difficult after all. I used an OS independent package (no poppler or pdf2image) and it works fine (I haven’t checked for huge documents, but for my usecase it works fine)

Packages used:

pypdfium2==4
pillow
1 Like