2014.10.15 02:56 "[Tiff] Tiff2pdf page ordering", by Richard Nolde

2014.10.14 17:56 "Re: [Tiff] tiff2pdf built using Microsoft Visual C++ generates pages out of order", by Bob Friesenhahn

Interestingly, tiff2pdf built on CentOS 6.3 and the one available in Cygwin distribution are generating the PDF correctly (i.e. pages are in order).

Unfortunately, I can only offer a "me too!". I built libtiff 4.0.3 using MinGW, (linking to zlib1.dll, liblzma-5.dll, libjpeg-8.dll, libtif-5.dll all built by myself with MinGW) and it does the same thing as yours, while my Ubuntu Trusty 14.04 tiff2pdf works as expected.

I used 'tiff2pdf' built from libtiff CVS on September 3rd, and Linux 'evince' (PDF viewer) shows the expected sequence 1-2-3.

The TIFF does use page numbers and the page numbers are in ascending order with the frames (0, 1, 2, of 3).

What PDF viewer is being used when the wrong sequence is shown?

It is important to check if the PDF viewer is re-ordering the PDF frames based on some PDF metadata in the tiff2pdf output or if tiff2pdf is somehow outputting the "physical" PDF pages in the wrong order.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/