I have GhostScript 8.53 installed. When I open the PDF-Sample.pdf file in XnView it opens fine, but when I try to convert the same file using NConvert, I receive the following error:
** NCONVERT v5.75 (c) 1991-2010 Pierre-E Gougelet (Sep 7 2010/11:49:02) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is a freeware software (for non commercial use)
Error: Don't know how to read this picture (C:\CmdApps\_tests\PDF-Sample.pdf)
Conversion of C:\CmdApps\_tests\PDF-Sample.pdf into test.jpg OK
I have tried setting the windows environment "System Variables" XNVIEW_GS_DLL to point to my "gsdll32.dll" file and XNVIEW_GS_LIB to "gsdll32.lib" but I still receive the same error.
I just tried installing gs 8.71 (I think I can just reference the dll and the lib file without affecting other applications that use GhostScript).
However that didn't change anything. I'm still getting the same error message.
I'm using the windows environment "System Variables" XNVIEW_GS_DLL to point to my "gsdll32.dll" file and XNVIEW_GS_LIB to "gsdll32.lib" in the gs8.71 bin folder.
FYI the older version of NConvert (version 5.00) works fine even if I delete the system variables (presumably its still using the older GS).
Older version:
** NCONVERT v5.00 (c) 1991-2008 Pierre-E Gougelet (Jul 21 2008/09:23:24) **
Version for Windows NT/9x/2000/Xp/Vista (All rights reserved)
Current version:
** NCONVERT v5.75 (c) 1991-2010 Pierre-E Gougelet (Sep 7 2010/11:49:02) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
- Windows server 2008 R2 (64-bit version) installed on a VM
- Ghostscript 8.71 (32-bit)
- Nconvert 5.62 (32-bit)
- both nconvert and gs are defined in environment variables
i am trying to convert PDF to JPEG using any of the following commands :
C:\Users\Administrator>nconvert -use_cie -org_depth -dpi 72 -q 100 -thumb 800 80
0 -overwrite -out jpeg -in pdf -o C:\Users\Administrator\Desktop\30821.jpeg C:\U
sers\Administrator\Desktop\30821.pdf
** NCONVERT v5.62 (c) 1991-2010 Pierre-E Gougelet (Apr 22 2010/17:32:06) **
Version for Windows NT/9x/2000/Xp/Vista (All rights reserved)
** This is a freeware software (for non commercial use)
Error: Don't know how to read this picture (C:\Users\Administrator\Desktop\308
21.pdf)
As i have read, this error appears when Nconvert is not able to find GS, but i am able to call both applications from command line. so i removed both applications and installed the 64-bit versions of each but to no avail, i kept on having the same error.
i then tired the 32 and 64-bit versions of Nconvert 6.01 and still same result
The weird part is , my PHP application calls nconvert using the exec function to convert PDF to jpeg, and when i upload a PDF via my application it is able to convert to JPEG!
Yet when i run the exact same command from command line, i receive the above error!
i tried the command line on a physical windows server 2008 with the same setup and it works fine!!
Any help on how to tackle this issue would be greatly appreciated ! thanks in advance
The weird part is , my PHP application calls nconvert using the exec function to convert PDF to jpeg, and when i upload a PDF via my application it is able to convert to JPEG!
Yet when i run the exact same command from command line, i receive the above error!
i tried the command line on a physical windows server 2008 with the same setup and it works fine!!
nconvert use registry to find gs, so if you launch it with command line or php, it's the same for me...
For a jpeg file, no problem?