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

2014.10.14 05:09 "[Tiff] tiff2pdf built using Microsoft Visual C++ generates pages out of order", by Shailender Bathula

Hi

I built tiff2pdf for Windows using instructions at http://www.remotesensing.org/libtiff/build.html

JPEG and ZIP support in nmake.opt are enabled and are linked to static libraries of libjpeg 6b (http://libjpeg.sourceforge.net/) and zlib 1.2.8 (http://www.zlib.net/). I had to build libjpeg and zlib also as I could not find their static libraries for Windows elsewhere.

tiff2pdf built is generating pages out of order for one of our test

files 123.tiff (attached). That tiff file is viewable in Windows Photo

Viewer and the pages have numbers 1, 2 and 3. The generated pdf is

231.pdf (attached). As you can see the first page is generated at the
end instead.

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). I tried to copy as many appropriate #defines that are used on the CentOS build in Windows build to eliminate a missing #define problem, without any success. The reason for building tiff2pdf for Windows and not using the one available in Cygwin is to use a static executable instead of a dynamically linked one.

Can anyone spot what the problem could be?

nmake.opt I am using is attached. I am building 4.0.3 release on Windows 7 64 bit using Microsoft Visual C++ 2010 Express.

Thanks

Shailender