Convert PDF to jpg files

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

Moderators: XnTriq, xnview

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

Convert PDF to jpg files

Postby boxig » Wed May 28, 2008 7:52 pm

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---

Postby Clo » Wed May 28, 2008 8:04 pm

: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

Postby boxig » Wed May 28, 2008 8:23 pm

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: 28065
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Postby xnview » Thu May 29, 2008 7:24 am

Could you post the pdf file?
Pierre.

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

Postby boxig » Thu May 29, 2008 8:30 am

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

Thank you
box

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

Postby xnview » Thu May 29, 2008 2:20 pm

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

Postby boxig » Fri May 30, 2008 3:35 pm

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: 28065
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Postby xnview » Sat May 31, 2008 1:51 pm

Perhaps he has not ghostscript
Pierre.

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

Postby boxig » Sat May 31, 2008 2:22 pm

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

Thank you

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

Postby xnview » Mon Jun 02, 2008 1:17 pm

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

Postby boxig » Mon Jun 02, 2008 2:49 pm

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

Thank you
box

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

Postby xnview » Mon Jun 02, 2008 6:08 pm

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:

Postby xnview_user657 » Sat Jul 23, 2016 4:16 pm

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.


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest