Loading...

Scanning Multiple Documents

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Scanning Multiple Documents

Postby 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?
RTCaylor
 
Posts: 4
Joined: Wed Jul 08, 2009 3:59 pm

Re: Scanning Multiple Documents

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Scanning Multiple Documents

Postby 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
RTCaylor
 
Posts: 4
Joined: Wed Jul 08, 2009 3:59 pm


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests