2010.04.29 19:38 "Re: [Tiff] Tiff Digest, Vol 71, Issue 10", by Richard Nolde

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


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,