AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2012

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2012.04.11 09:48 "tiff2pdf fit image to page - how does it scale?", by David E Meier
2012.04.11 10:25 "Re: tiff2pdf fit image to page - how does it scale?", by <pullmoll@t-online.de>
2012.04.11 12:20 "Re: tiff2pdf fit image to page - how does it scale?", by David E Meier
2012.04.11 14:49 "Re: tiff2pdf fit image to page - how does it scale?", by Lee Howard
2012.04.11 22:38 "Re: tiff2pdf fit image to page - how does it scale?", by James Cloos
2012.04.12 01:49 "Re: tiff2pdf fit image to page - how does it scale?", by Steve Underwood

2012.04.11 10:25 "Re: tiff2pdf fit image to page - how does it scale?", by <pullmoll@t-online.de>

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