Page 1 of 1

TWAIN SCAN to existing Tiff File

Posted: Tue Sep 19, 2017 6:25 pm
by LA7777777
Simply trying to save a scanned Tiff image(denoted by ImageID) to an existing Tiff file. Using the code below but definitely missing something.

Code: Select all

MultiPageID = oGdPictureImaging.TiffCreateMultiPageFromFile(@"C:\Users\someuser\Documents\capture.tif", true);
oGdPictureImaging.TiffAddToMultiPageFile(MultiPageID, ImageID);
Any help greatly appreciated.

Re: TWAIN SCAN to existing Tiff File

Posted: Thu Sep 21, 2017 2:02 pm
by LA7777777
Hey support, any help with this?

Re: TWAIN SCAN to existing Tiff File

Posted: Mon Oct 30, 2017 6:01 pm
by Cedric

The issue is probably that you do not save the result file after adding the page to it, you just add it (in memory) and then dispose and close the document without saving the modifications. You are missing a call to the TiffSaveMultiPageToFile method before closing the document.