Shows error while converting pdf to png

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
Pragasam
Posts: 4
Joined: Wed Feb 06, 2019 1:43 pm

Shows error while converting pdf to png

Post by Pragasam » Thu Feb 07, 2019 7:55 am

while converting from pdf to png I am getting errors like

my_error_exit...<Not a JPEG file: starts with 0x25 0x50>

The command that i have used is

nconvert -xall -dpi 200 -multi -c 8 -out png -o D:\clientdata\666532569.png D:\clientdata\666532569.pdf
nconvert -out png -xall -o D:\clientdata\test.png D:\clientdata\666532569.pdf

I have attached the file that i have tried with.

Please help me out to convert this type of files

Thanks
Attachments
666532569.pdf
(81.08 KiB) Downloaded 18 times

User avatar
xnview
Author of XnView
Posts: 31597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Shows error while converting pdf to png

Post by xnview » Thu Feb 07, 2019 8:12 am

do you have ghostscript?
Pierre.

Pragasam
Posts: 4
Joined: Wed Feb 06, 2019 1:43 pm

Re: Shows error while converting pdf to png

Post by Pragasam » Thu Feb 07, 2019 8:30 am

xnview wrote:
Thu Feb 07, 2019 8:12 am
do you have ghostscript?
I don't have anything like that. I directly execute this command, in windows command line and convert.

User avatar
xnview
Author of XnView
Posts: 31597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Shows error while converting pdf to png

Post by xnview » Thu Feb 07, 2019 8:35 am

To be able to load PDF you need to install ghostscript
Pierre.

Pragasam
Posts: 4
Joined: Wed Feb 06, 2019 1:43 pm

Re: Shows error while converting pdf to png

Post by Pragasam » Thu Feb 07, 2019 9:36 am

xnview wrote:
Thu Feb 07, 2019 8:35 am
To be able to load PDF you need to install ghostscript
Thanks for the quick update. It is working as we expect.

Post Reply