2010.03.31 17:56 "[Tiff] Tiff2pdf page ordering", by Richard Nolde
Regarding tiff2pdf page ordering:
It's been a while since I looked at the source to tiff2pdf, but I remember that it scans all the IFDs in the Tiff file and sorts them according to some criteria rather than just taking them in linear order. Also, as the output from tiffinfo indicates, some of the images in your file have the Subfile Type set to Multipage Document and others do not. If you run tiffinfo over the file and compare the Subfile type tag reported for each image, you might be able to figure out what the sort order is without studying the source code. Then, all you have to do is figure out why your images have different SubFile types. If this is a one time project, you could extract the individual images in different sequences with tiffcrop and then reassemble them with tiffcp but this probably won't change the subfile type so it may not help.
Page Number tags seem to be less than reliable in my experience.
What application produced your TIFFs?
> From: Lee Howard<email@example.com>
> Subject: Re: [Tiff] Tiff2pdf-problem with pages in the wrong order.
To make myself short.
Running tiff2pdf.exe without modifications, "tiff2pdf.exe -o test.pdf test36p.tif", on my WinXP SP3.
This generates a pdf containing all 36 pages, but in a wierd order. In the original file has the pagenumber printed in the top righthand corner. and the order of the pages is as follows:
3,4,5,6,7,8,9,10,11, 3,4,5,6,7,8,9,10,11, 3,4,5,6,7,8,9,10,11
the pdf is ordered 4,3,5,10,11,6,7,4,8,5,9,10,11,4,5,3,10,11,4,6,5,7,10,8,9,11,3,6,7,8,9,3,6,7,8,9
Some other files I've ran produce the same error, some other don't. It bugs me to not know why!
Does this happen to everyone? What can I do about it?