Fitting at best an A4 PDF with white borders

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
gvdmoort
Posts: 4
Joined: 2010-10-05T02:06:31-07:00
Authentication code: 8675308

Fitting at best an A4 PDF with white borders

Post 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.
Post Reply