Convert PDF to jpg files

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

Moderators: XnTriq, helmut, xnview

Post Reply
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Convert PDF to jpg files

Post by boxig »

Hi

I want to convert a pdf file so that each page (text) will be a jpg image. I tried these two but fail:

-o Output.jpg -out.jpg -xall -input.pdf
-xall -o test.jpg input.pdf

Also I want to know if I can resize the images to 80%.

Please help and thank you.

box
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Crappy workaroun---

Post by Clo »

:arrow: boxig

:) Hello ! Welcome aboard !

• Just a crappy workaround :

- Set your PDF pages in order they fit the "View" window, then Alt+PrintScreen >> Close the page >>
Import Clipboard >> Crop >> Save as JPG.
- For each, indeed… :|

:mrgreen: Kind regards
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Post by boxig »

Clo

Thank you for quick reply.

I found how to do it using this but have problem:

-xall -out jpeg -o test.jpg input.pdf

It seems that the pages are reduced and the jpg are compressed so the result is blur. I want to keep original size and not to compress, or to have controll these two. How do I do that ?

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

Post by xnview »

Could you post the pdf file?
Pierre.
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Post by boxig »

Here is the pdf file:
http://www.thailandphotoalbum.com/Ten.zip

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

Post by xnview »

boxig wrote:Here is the pdf file:
http://www.thailandphotoalbum.com/Ten.zip
Ok, right. You can change the dpi used
Pierre.
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Post by boxig »

Finally I made it work but when i gave to a friend the same script he got an error message:
G:\XNVIEW>nconvert.exe -xall -out jpeg -dpi 100 -o x.jpg a.pdf
** NCONVERT v4.95 (c) 1991-2008 Pierre-E Gougelet (May 1 2008/17:48:32) **
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 (a.pdf)

Conversion of a.pdf into x.jpg OK
What he makes wrong ?
And why the last line say "OK" ?

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

Post by xnview »

Perhaps he has not ghostscript
Pierre.
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Post by boxig »

I never installed "ghostscript" and have no problem (?)

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

Post by xnview »

boxig wrote:I never installed "ghostscript" and have no problem (?)
You have ghostscript :-) Nconvert use it
Pierre.
boxig
Posts: 11
Joined: Wed May 28, 2008 7:20 pm

Post by boxig »

just for general knowledge:
Was it installed by another program or by XnView ?

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

Post by xnview »

boxig wrote:just for general knowledge:
Was it installed by another program or by XnView ?
Another program
Pierre.
xnview_user657
Posts: 1
Joined: Sat Jul 23, 2016 4:11 pm

Re:

Post by xnview_user657 »

boxig wrote:I never installed "ghostscript" and have no problem (?)

Thank you
Instead of ghostscript you can use a very simple opensource library http://www.foolabs.com/xpdf/home.html or free software http://pdf-to-jpg-convert.en.softonic.com
ghostscript is more of a general conversion and virtual printer software while the above ones are specific to PDF to JPG image conversion.
Post Reply