Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Converting PDF to image


Level 1


1.We need to convert the each page of the PDF to JPG image in JAVA .

   DoLiveCycle ES APIs or any other Acrobat product provide API or SDK to do so?.

2. Is it possible to get the Orginal dimension  and the DPI  information (if the document is created in photoshop with 1667 X 1667 pixel as dimensions and DPI as 250 ) for each page.If so that is the API we can use for it.

For example:

a PDF document with

Width  :1667 px

Height :1192 px

Document Width :6.668 inches

                Height:4.768 inches

DPI is 250 pixels/inch.

When i open the same docuent in notepad I am able see the header information as /MediaBox [ 0 0 480 343 ]


/Type /XObject
/Subtype /Image
/Interpolate false
/Filter /DCTDecode
/Width 1667
/Height 1192

/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Length 11 0 R


which is nothing but (1667 /250)*72 and (1667 /250)*72.

we want the values as

Width  :1667 px and

Height :1192 px

is it possible to get?.


Uvaraj S.

1 Reply


Level 4

1. Yes.  There is a ConvertPdfService in the Foundation component in the API.  It takes a PDF document as an input, you provide a set of conversion options and you get a map/list of images back out.

2.  Yes.  If I understand what you are asking.  Through DDX you can query a PDF for DocInfo.  Part of that information contains page width and height in pixels.  Go look up the DDX reference.

Here is a sample DDX document

<DDX xmlns="">

     <PDF result="result.pdf">

          <PDF source="inDoc1" />


     <DocumentInformation source="result.pdf" result="doc_info.xml" />


Here is a sample of the data returned in the doc_info.xml.

<DocInfo xmlns="">
   <Title>This is a test doc</Title>
   <Creator>PScript5.dll Version 5.2.2</Creator>
   <Producer>Jaws PDF Creator v2.10.987</Producer>
     <PageSize height="842.0pt" pages="1-16" width="595.0pt"/>
     <PageRotation pages="1-16" rotate90="0"/>
     <PageLabel format="Decimal" pages="1-16" start="1"/>