TWAIN SCAN to existing Tiff File

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
LA7777777
Posts: 2
Joined: Tue Sep 19, 2017 6:16 pm

TWAIN SCAN to existing Tiff File

Post by LA7777777 » Tue Sep 19, 2017 6:25 pm

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

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

LA7777777
Posts: 2
Joined: Tue Sep 19, 2017 6:16 pm

Re: TWAIN SCAN to existing Tiff File

Post by LA7777777 » Thu Sep 21, 2017 2:02 pm

Hey support, any help with this?

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: TWAIN SCAN to existing Tiff File

Post by Cedric » Mon Oct 30, 2017 6:01 pm

Hello,

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest