Skip to main content
Simon eF
Participating Frequently
February 7, 2022
Question

How do you create a pdf from images (.pngs) but target an A4 landscape page size

  • February 7, 2022
  • 3 replies
  • 2810 views

I have a set of images (pngs) that are relatively high res (3k * 1.8 k) and want to create a PDF with each image as an A4 landscape page.  If I simply import these images into acrobat (using create from file), I get a page size something like 39x27 inches.

Is there some way to set the page size before importing?

(Also, is there a way to make the sizes metric?)

Thanks

Simon

This topic has been closed for replies.

3 replies

Simon eF
Simon eFAuthor
Participating Frequently
February 8, 2022

Answering my own question, I've found the easiest solution for me is to use ImageMagick's "convert" command i.e.

convert -page 842x595 Image1.png Image2.png Image3.png  ...etc..  Document.pdf


This was a tip on stack overflow. The 842x595 is effectlive A4 in landscape

try67
Community Expert
Community Expert
February 7, 2022

You can create a new file with a blank A4 page using this code:

app.newDoc(8.3*72, 11.7*72);

Then you can use the Background tool to insert your image to the page and scale it down so that it fits it.

The entire process can also be scripted, if you want to add multiple pages.

try67
Community Expert
Community Expert
February 8, 2022

Addendum: Another option is to use the Scale Pages preflight tool, if you have Acrobat Pro DC.

Amal.
Community Manager
Community Manager
February 7, 2022

Hi Simon,

 

Hope you are doing well and sorry to hear that. As described you want to create a custom page size of the images in the PDF.

 

Please go through the steps shared under the heading 'Create and use custom page size' in the help page https://helpx.adobe.com/acrobat/using/using-pdf-printer.html and see if that works for you. 

 

Regards

Amal

 

 

Simon eF
Simon eFAuthor
Participating Frequently
February 8, 2022

So in essense, I need to create the pdf from the images as before (with the wierd page size) and then "print to pdf" to get an A4 pdf?