oschwartz10612 / poppler-windows

Download Poppler binaries packaged for Windows with dependencies
MIT License
549 stars 59 forks source link

Poppler is not working for Windows 10 Enterprise #58

Closed Geetha1711 closed 8 months ago

Geetha1711 commented 11 months ago

Dear Team,

I have tried to install poppler in Windows 10 Enterprise. pdftoppm -h/-v are working properly But when I tried to convert my pdf to jpeg or png, getteing the error message as I/O Error: Could'nt open file './xxx.pdf' : No error. I have tried from 23.08 th version to current 11th version. Could you please help me to resolve the issue. I need poppler library to extract text from pdf images in my python code.

Regards, Geetha S

oschwartz10612 commented 11 months ago

Hi Geetha!

I just tested this on 23.11 and it seemed to work for me. I dont have enterprise but I do have home. I was under the impression that these should work the same.

Not to point out the obvious, but is the pdf in the same directory that you are running the command and are you using the correct filename and extension? Maybe you could provide me with a dir of your directory and a sample command?

Chetouchua commented 10 months ago

I 've got a similar problem like yours, and also I couldn't find the "bin" file in the poppler pacages, it stopped me from use poppler in my Pycharm. Could you please tell me what happended to my poppler? :(

Geetha1711 commented 10 months ago

bin will be under poppler/library folder

GitHubRulesOK commented 10 months ago

@Geetha1711 in theory there is no installing of poppler pdfutils as they are in effect a port (able)(ish), what is needed is they be on "path" IF you wish (personally never add portables to path, using so many apps it would soon fail).

When running from afar it is easy to call c:\path to\poppler\bin\pdfblah options filename

Unfortunately I can never run any of these versions on my enterprise pro as its 32bit (I have to run 22.02) but when using 64 bit machine in 2023 it usually worked, note the

Are you saying Release 23.07.0-0 and earlier work for you now but 23.08 did not when testing.

the error message will be file relative so if the file is in poppler folder there is no need for ./ (also here i dont use for this set \Library\bin but may for another)

...DF\poppler\22.02>pdftoppm -png ./xxx.pdf out
or
...DF\poppler\22.02>pdftoppm -png xxx.pdf out

...DF\poppler\22.02>dir /b Out*.png
out-1.png
out-2.png
out-3.png
out-4.png
out-5.png

However whatever version I use if I run from the folder above or any other even when on path

...DF\poppler>22.02\pdftoppm.exe -progress ./xxx.pdf out
I/O Error: Couldn't open file './xxx.pdf': No error.

Simply means the option plus file is not in this folder even if its there in the one subfolder down where it ran before. However for just the filename as error it may be different

...DF\poppler>22.02\pdftoppm.exe -png ./xxx.pdf out
Access is denied.

correct mix

DF\poppler>22.02\pdftoppm.exe -progress -png ./22.02/xxx.pdf out
1 5 out-1.png
2 5 out-2.png
3 5 out-3.png
4 5 out-4.png
5 5 out-5.png
Chetouchua commented 10 months ago

thanks for your kind help >w< I 've fixed this !

Fdawgs commented 8 months ago

@oschwartz10612 looks like this can be closed as it was resolved. :)