TiffMerge2Files not merging a 1 page TIFF and a multi TIFF

Discussions about image processing and document imaging.
Post Reply
sulfaroj
Posts: 9
Joined: Tue Jun 19, 2012 5:50 am

TiffMerge2Files not merging a 1 page TIFF and a multi TIFF

Post by sulfaroj » Tue Jul 24, 2012 6:01 am

Hi,

I am trying to use the TiffMerge2Files to merge two TIFFs, Sometimes the two TIFFs are 1 page and say 2 page, when I try to merge a 1 page TIFF with a multipage TIFF, the resulting output file is not valid. If I try 2 x 2 page Tiffs, the result is a 4page multi tiff.

oGdPictureImaging.TiffMerge2Files(@"c:\scan\temp.tif", @"c:\scan\temp2.tif", CurrentFile, TiffCompression.TiffCompressionAUTO);

Where temp.tif is 1 page and temp2.tif is a 2 page tiff.

After further investigation, if temp.tif is 2 pages and temp2 is 1 page it merges correctly. I need it to work for any combination.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: TiffMerge2Files not merging a 1 page TIFF and a multi TI

Post by SamiKharma » Tue Jul 24, 2012 9:59 am

Hi,

Yes of course this is normal behaviour.
Merge2Files belongs to the group of Multipage Tiff functions, you can see that in the documentation.

If you want to add a one page tiff to a 2 page tiff, you can do that using TiffInsertPageFromFile
https://www.gdpicture.com/guides/gdpicture/v9/html/con ... tring.html

Cheers,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests