Page 1 of 1

Fitting at best an A4 PDF with white borders

Posted: 2010-10-05T02:35:30-07:00
by gvdmoort
Hello,

If I convert an image to pdf, I can't predict the size of the resulting PDF (for ex., an image of 1000x750 px gives me a pdf of 352 x 265 mm).

I wish to obtain a regular A4 pdf (210 × 297mm) with a minimal white border of 25mm, to be sure that it will be correctly printed at maximal/optimal size without be cropped, regardless of the printer, and the initial size of the image.

But if use both -page and -border, the image is distorded:

$ convert -page A4 -border 25 test.png test.pdf

and it seems that I can't set the border size in other units than pixels.

Is it possible with generic options, without calculating the dimensions foreach image ?

Regards,

G.