2012.04.11 09:48 "[Tiff] tiff2pdf fit image to page - how does it scale?", by David E. Meier

2012.04.11 10:25 "Re: [Tiff] tiff2pdf fit image to page - how does it scale?", by Jürgen_Buchmüller

Am Mittwoch, den 11.04.2012, 11:48 +0200 schrieb David E. Meier:

If I calculate the size of an A4 page with 1728 pixels width it would give me 2444 pixels in height, thus, larger than the image that is getting cropped.

Can anyone shine a little light on this matter? Thanks,

Looking into pdf2tiff.c I see a function tiff2pdf_match_papersize and its static list entry for A4 is width:595 x height:842. For 1728 pixels width this would result in a (scaled up) default of 2445 pixels.

Specifying -p sets an internal flag "pdf_overridepagesize" which later on results in the pdf_pagewidth and pdf_pageheight values, i.e. the ones written into the PDF, to be plain copies of the defaulted page width and height. If you want the actual TIFF width and height in the PDF, I guess you could just specify the DPI and leave the paper size alone?

HTH
Juergen