coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
Other
581 stars 42 forks source link

Not compatible with Win10 #40

Closed valuex closed 4 years ago

valuex commented 4 years ago

I am using cpdf to extract serveral pages from a large pdf , but it says cpdf is not compatible with my OS. (I am using Chinese, so I can not copy & paste the orginal alert here).
cpdf: v2.3 (tried 32-bit and 64-bit, both has the same error)
OS: win10 pro, 1903, 64-bit

johnwhitington commented 4 years ago

This the error message you get if you try to run 32 bit software on a 64 bit windows or vice versa.

Can you check again?

When I tried it on my Windows 10 64 bit system, I get:

John Whitington@DESKTOP-OJQME0H ~
$ wget https://github.com/coherentgraphics/cpdf-binaries/raw/master/Windows/cpdf.exe
Saving to: ‘cpdf.exe’

cpdf.exe                               100%[============================================================================>]   6.18M  1.10MB/s    in 4.8s

2019-10-06 17:42:15 (1.30 MB/s) - ‘cpdf.exe’ saved [6477513/6477513]

John Whitington@DESKTOP-OJQME0H ~
$ ./cpdf.exe
-bash: ./cpdf.exe: Permission denied

John Whitington@DESKTOP-OJQME0H ~
$ chmod +x cpdf.exe

John Whitington@DESKTOP-OJQME0H ~
$ ./cpdf.exe
For non-commercial use only
To purchase a license visit http://www.coherentpdf.com/

So perhaps I need to update the files to have the executable permission bit properly set?

johnwhitington commented 4 years ago

@valuex did this help?

valuex commented 4 years ago

@valuex did this help?

Sorry for my late reply.
The error message says that the binary in folder windows or windows32 is the 16-bit one, not 64-bit or 32 bit one.
Maybe the version uploaded is not the right version.
Can you help to check it? Thanks a lot.

1png
valuex commented 4 years ago

Sorry for bothering.
Previously, I just right click the cpdf.exe in the folder windows. Then an error message says not compatible. But today, I download the entire project as a zip file and un-zip it. No more un-compatible error. Kind of wired. Thanks.