How can I convert a pdf page to jpg with its original resolution?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Jean-Pierre Coulon
Posts: 42
Joined: 2016-10-04T02:08:22-07:00
Authentication code: 1151
Location: Nice, France

How can I convert a pdf page to jpg with its original resolution?

Post by Jean-Pierre Coulon » 2018-02-23T10:12:07-07:00

At present I measure the size of a pixel magnifying the page a lot with acrobat reader. I measure the page width. width/pixel gives me the number of pixels for the width. I try to convert with variable densities till identify gives me the same size. Is there a more productive and more accurate procedure?

snibgo
Posts: 10561
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How can I convert a pdf page to jpg with its original resolution?

Post by snibgo » 2018-02-23T10:29:02-07:00

I think you mean that you have a PDF page with an embedded raster image. You want to know what density to rasterize the page such that the raster image is not resampled. Is that the question?

The answer is to use pdfimages, not ImageMagick.
snibgo's IM pages: im.snibgo.com

Jean-Pierre Coulon
Posts: 42
Joined: 2016-10-04T02:08:22-07:00
Authentication code: 1151
Location: Nice, France

Re: How can I convert a pdf page to jpg with its original resolution?

Post by Jean-Pierre Coulon » 2018-02-23T10:37:22-07:00

This PDF page was made with a scan but I don't know how it was converted to pdf. You understood my question. Could you please provide the link to pdfimages? Is it free?

User avatar
fmw42
Posts: 23666
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How can I convert a pdf page to jpg with its original resolution?

Post by fmw42 » 2018-02-23T10:57:42-07:00


Post Reply