deskew function

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

deskew function

Post by joecool2005 » Wed Sep 05, 2007 6:49 pm

Hi all,

I would like to know if a deskew function exists for GdTwain.
If yes, which function?

Thx
Joe

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

Post by Loïc » Wed Sep 05, 2007 8:32 pm

Hi,

You can try to call TwainSetAutomaticDeskew(True) before acquiring an image. However this methods will works only if your device gets this functionality.

Best regards,

Loïc Carrère

joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Post by joecool2005 » Wed Sep 05, 2007 9:13 pm

Thanks for your help

I put TwainSetAutomaticDeskew(True) before acquiring an image and it does not work.

Code: Select all

Set oTWAIN = CreateObject("gdtwain.twain")

oTWAIN.SetLicenseNumber("0012345678910111213141516") 'Demo code version

oTWAIN.TwainOpenDefaultSource
oTWAIN.TwainSetAutomaticDeskew(true)
nImageID = oTWAIN.TwainAcquireToImageID
If nImageID <> 0 Then
  oTWAIN.SaveAsPdf ("D:\Ufile\www\gdtwain\gdtwaintest3.pdf")
  oTWAIN.CloseImage (nImageID)
  document.write "Save D:\Ufile\www\gdtwain\gdtwaintest3.pdf completed"
End If

oTWAIN.TwainUnloadSourceManager
Joe

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

Post by Loïc » Wed Sep 05, 2007 9:20 pm

What is your scanner model ?

Loïc

joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Post by joecool2005 » Wed Sep 05, 2007 9:35 pm

HP ScanJet ADF

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

Post by Loïc » Wed Sep 05, 2007 9:38 pm

I need the complete reference.

ex:
HP scanjet 4100C
HP ScanJet ADF 6300C
HP Scanjet ADf C7670A
...

Regards,

Loïc

joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Post by joecool2005 » Wed Sep 05, 2007 9:42 pm

HP Scanjet ADf C5195

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

Post by Loïc » Wed Sep 05, 2007 9:58 pm

I can't found any description of this device which says that is support the Automatic Deskew by Hardware :(

However an Automatic Deskew method is into my roadmap. But now, I can't give a date of release (maybie end of October or few days before but is not sure).

Best regards,

Loïc Carrère

joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Post by joecool2005 » Thu Sep 06, 2007 3:32 pm

Hi,

Thanks for your answer.

I got another scanner machine. This is new.
Model: Lexmark X642e

And it does not support the deskew

Thx
Joe

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest