The leading provider of version control solution and TWAIN SDK

How can I insert new scanned images to an existing multi-page file?

First, you should load the image file to Dynamic Web TWAIN. Currently, we only ensure that images created by Dynamic Web TWAIN or Dynamic TWAIN can be loaded successfully.

You can use the LoadImage method or the LoadImageEx method to load the image file to Dynamic Web TWAIN. Before acquiring images, please check the value of the IfAppendImage property. Set its value to false(the default is true), then the new scanned image will be inserted ahead the current image (you can assign the current image index by CurrentImageIndexInBuffer). Click here to find information about appending new scanned images to an existed multi-page file.

For example, you have a multi-page file including 5 images and you want to insert a new scanned image before the second image.

Code (C#):

//load the image into Dynamic Web TWAIN
private void Load_Click(object sender, EventArgs e)
{
      axDynamicWebTwain1.MaxImagesInBuffer = 8;
      //the maximum number of images can be held in buffer in the trial version is 4
      axDynamicWebTwain1.LoadImage("G:\\wwwroot\\a.tif");
}

//inserte the new scanned image before the current image
private void Add_Click(object sender, EventArgs e)
{
      axDynamicWebTwain1.OpenSource();
      axDynamicWebTwain1.SelectSource();

      axDynamicWebTwain1.IfAppendImage = false;
      //set the value to false, so the new scanned image will be inserted before the current image.
      axDynamicWebTwain1.CurrentImageIndexInBuffer = 1;
      axDynamicWebTwain1.AcquireImage();
}

Reference:

LoadImage  LoadImageEx  IfAppendImage  CurrentImageIndexInBuffer




Article Details

Last Updated
7th o November, 2008

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue