Replies: 4 comments
-
Hi @sidz, libvips needs to have been built with PDF support and I guess your package has not. You can test with:
So I have:
ie. I have PDF loading via libpoppler, and it's been configured as a loadable module. libvips can also use PDFium, which can be better in some circumstances. It's also possible that your libvips has been built correctly, but is unable to find the module at runtime. You can trace startup with:
It can give some clues about where it's looking and what might have gone wrong. |
Beta Was this translation helpful? Give feedback.
-
Did you see https://pkgs.alpinelinux.org/package/v3.21/community/x86_64/vips-poppler ? |
Beta Was this translation helpful? Give feedback.
-
Thanks both of you @jcupitt and @kleisauke for a quick reply. @jcupitt seems like poppler-glib enabled now.
Unfortunately I didn't know about Anyway with the current Vips config I'm able to open PDF. Going to close this discussion. |
Beta Was this translation helpful? Give feedback.
-
For those who is looking a solution: In Alpine (at least 3.21) you need to install |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys.
Am I able to open pdf and save it as an image currently?
I've tried to do a simple

$image = Vips\Image::newFromFile($pathToPdf);
but PHPVips through the following exception:Similar when I tried to use
vips copy "files/test.pdf[n=-1,dpi=300]" a.jpg
.I'm in the Alpine (3.21) based docker container. vips and vips-tools packages have been installed.
Beta Was this translation helpful? Give feedback.
All reactions