by Bumerrrang » Fri Dec 11, 2009 10:38 am
Hello,
The code You'd written is from the sample lake I see, one part just missing (InitScanConfig;). But in documentation I've read, that the function object.TwainAcquireToGdPictureImage (hwnd) (in our case the string is <While Twain1.TwainAcquireToGdPictureImage(Handle) <> 0 do>) is used for converting just one image to PDF (in documentary is written <Acquires a single image, from the currently selected Data Source.>). Your example also scans just one image to PDF file (I had tried it too for each case).
Else in the documentary is described the function <object.TwainAddGdPictureImageToPdf (nImageID)>. It is written there, that <Appends a GdPicture Image into the multipage PDF file created by the TwainPdfStartEx() function.> This is because I think this function must be applied for multiple scanning. And I ask maybe somebody has an example of using this function (I had tried the code from the documentary, but there it is in Visual Basic at first, and at second the same code in Delphi does not work correctly). If nobody has, can somebody give me advise what I should to do? How can I scan multipage into one PDF file?
Regards,
Andrei.