ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Page Size - Match Original Size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sidney Egnew

USA
51 Posts

Posted - May 23 2019 :  17:59:39  Show Profile  Reply
Hello:

I use ImageEnMIO to provide scanning capability to my customers. I have a customer that wants to use a Canon DR-M160ii with their scanning application. The problem is this scanner always returns an 8 1/2 x 11 image. According to Canon, setting their option "Page Size" to "Match Original Size" should fix the problem. It does not and they don't have a solution. Checks are returned with black pixels to fill out the letter size image. Legal pages are truncated at letter size.

All the other scanners we use detect the paper height when scanning and set the image height to match. The Canon does not. So we tried eight different scanning programs to determine how to proceed. The scan images returned were the proper dimensions in only two cases. Dimensions for images scanned using CaptureOnTouch V4 Pro and LaserFiche were correct. All other software exhibited the same problem we are experiencing. Since two of the imaging programs were able to get back the correct images, it must be possible to do so with ImageEnMIO.

My acquisition code is shown below. What do I need to do differently?

Thanks, Sidney

        with ImageEnMIO do
        begin
          with AcquireParams do
          begin
            XResolution := 300;
            YResolution := 300;
            // Logic to set PixelType not shown...
            Orientation := ieaoPortrait;
            Rotation := iearNone;
            FeederEnabled := True;
            AutoFeed := True;
            DuplexEnabled := True;
            AcquireFrameEnabled := False;
            VisibleDialog := ShowAcquisitionDialogCheckbox.Checked;
            // Logic to set myTiffCompression not shown...
          end;
          TwainParams.AutoBorderDetection := True;
          TwainParams.AutoRotate := True;
          Acquire;
        end;

xequte

38182 Posts

Posted - May 26 2019 :  18:33:25  Show Profile  Reply
Hi

Does setting the following make any difference to the issue:

TwainParams.UndefinedImageSize := True;

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: