These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Export PDF pages as PNG files problem

clipper
Registered: Dec 14 2011
Posts: 3

Hello all,
 
Hope someone can help me.
 
I have a PDF file that has page size - 16 inch x 12 inch.
I need to export all the pages as PNG images.
 
When I use File>Export>Image>PNG and save the pages, the PNG files vary in their width/height pixel values.
Some are produced at 79.53 pixels/cm, some at 40.95 pixels/cm etc, resulting in different width/height pixel values.
  
I need all the PNG images to be the same pixel width x height measurement. eg 3200 x 2400 pixels.
 
I've used a trial version of Expert PDF 7 and that works okay, so I would have thought it would be possible with Adobe Acrobat 9 Pro.
 
Some of pages contain small jpeg images.
 
Am I missing some setting somewhere in Acrobat 9 Pro, that allows me to set the exported PNG resolution?
 
Thanks in advance.
 
Stef

clipper
Registered: Dec 14 2011
Posts: 3
I'm surprised that no-one on this forum has the knowledge to answer my query.

I guess I'll try another forum or abandon Acrobat and get Expert PDF 7

Stef

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I believe that the image size is based on the bounding box of the page content. Does it seem to match? You can find the BB for each page by running this code in the console window.

for(var i=0;i<this.numPages;i++)
{
var rPg = this.getPageBox("BBox",i);
console.println("Page:" + (i+1).toString()
+" Width:" + (rPg[2]-rPg[0]).toString()
+" Height:" + (rPg[1]-rPg[3]).toString());
}

You can change the BB by adding invisible content along the edges to even it all out.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

clipper
Registered: Dec 14 2011
Posts: 3
Thanks for your help Thom.

I'll look into your information

Stef