Scanning Multiple Documents

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
RTCaylor
Posts: 4
Joined: Wed Jul 08, 2009 3:59 pm

Scanning Multiple Documents

Post by RTCaylor » Mon Jan 18, 2010 6:21 pm

I am trying to develop an application that will scan a stack of paper and automatically divide them into separate PDF documents. To do so, I want to analyze each page as it is scanned and then determine whether or not it should be added to the current PDF document or to start a new one. I am using TwainPdfStartEx, TwainAddGdPictureImageToPdf, and TwainPdfStop to create the final PDF documents. I was trying to us SaveAsPDFEx to save each page to a temporay PDF file to be examined by another process that can examine the page to see what to do next. Unfortunately though, SaveAsPDFEx closes the image preventing me from adding it to the final document via TwainAddGdPictureImageToPdf. Is there any way to invoke SaveAsPDFEx without having it close the image?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Scanning Multiple Documents

Post by Loïc » Tue Jan 19, 2010 1:35 pm

Hi,

The SaveAsPDFEx doesn't close any image. Your problem seems away.

If you provide a simple code snippet to reproduce your problem we will be able to help.

With best regards,

Loïc

RTCaylor
Posts: 4
Joined: Wed Jul 08, 2009 3:59 pm

Re: Scanning Multiple Documents

Post by RTCaylor » Wed Jan 20, 2010 7:22 pm

Thank you for the quick response. I found my problem. I was thrown off by the documentation for SaveAsPDFEx that at the bottom says "Category: Save and Close Image".

Thanks again,

Ron

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests