TIFF and LibTiff Mail List Archive

2001.08.13 21:11 "TIFFWriteDirectory", by Christopher Richard


I'm trying to adjust the page number tags on a TIFF file after adding a directory to the file. I'm not sure if I can do what I'm trying to do but basically I've opened the file in append mode, then moved to the directories that I want to update and use TIFFSetField on them. The thing is I think I'm supposed to call TIFFWriteDirectory before moving on to the next directory but in the libtiff documentation it mentions that TIFFWriteDirectory write the current directory and creates a new one? I don't need it to make a new directory, I just need to move through each directory and add one to the total number of pages tag as a result of adding a directory onto the end.

Does anyone have experience with this?

Chris Richard