AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2010

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



2010.04.29 11:05 "Problem with tiff2ps page split", by Thomas Jarosch

Hello,

I'm running libtiff 3.9.2 to convert incoming fax documents
to PDF files. Everything works fine except when I receive
multiple pages disguised as one very large page.

Commands used:
-----------------------------------------------
# Crop to A4 page width
tiffcrop -e combined -U in -X 8.26 very_long_page.tiff cropped.tiff

# Convert to postscript. Split overlong pages
/usr/bin/tiff2ps -pa1 -w 8.27 -h 11.69 -H 13 -L 0.5 -O doc.ps cropped.tiff

# Create PDF
/usr/bin/ps2pdf -sPAPERSIZE=a4 doc.ps output.pdf
-----------------------------------------------

The output looks garbled as the first page just gets repeated somehow.
Doing the same thing with libtiff 3.8.2 looks a bit better,
though whole pages still get repeated.

I tried to debug the code but after several hours figuring
out how it works with no real progress, I thought it might
be a good idea to ask for help :)

Here you can find an example document:
http://www.intra2net.com/en/developer/very_long_page.tiff

Any idea what might go wrong? This used to work...

Thanks in advance,
Thomas