Loading...

Comment desactiver le recadrage auto

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Comment desactiver le recadrage auto

Postby tAkAmAkA » Sat May 08, 2010 11:41 pm

Bonjour Loïc,

J'utilise une multifonction HP Officejet J6415 dont les pilotes sont à jour au 08/05/2010 (d'après l'utilitaire de maj HP)
GdPicturePro à jour également (5.13.0 du 03 mai 2010)
Windows Xp Pro Sp3

Je scan des doc A4 cers Pdf.
Le scanner me recadre systématiquement les images en enlevant les bordures blanches alors que je souhaiterai mon document au format brut A4.
Voici le code
Code: Select all
Private Sub cmdAsaTest_Click()

Imaging1.TwainLogStart ("H:\Ana\aaaTwainlog.txt")

Imaging1.TwainOpenDefaultSource

If Imaging1.TwainGetState() > 3 Then
    Imaging1.TwainSetCurrentResolution (Me.cmbResolution.Value)
    Imaging1.TwainSetCurrentPixelType (Me.cmbMode.Value)
    Imaging1.TwainSetPaperSize (1)  'A4
Else
    MsgBox "Réglages non appliqués", vbExclamation
End If
Imaging1.TwainSetAutomaticBorderDetection (False)
 hauteur = Imaging1.TwainGetPhysicalHeight()
 largeur = Imaging1.TwainGetPhysicalWidth()
 origineX = 0
 origineY = 0: MsgBox hauteur & vbCrLf & largeur
Imaging1.TwainSetHideUI (True)
Imaging1.TwainSetAutoFeed (True)
Imaging1.TwainSetAutoScan (True)
Call Imaging1.TwainResetImageLayout
'autre essai avec Call Imaging1.TwainSetImageLayout(origineX, origineY, largeur, hauteur)
Call Imaging1.TwainSetAutoSize(False)

If Imaging1.TwainPdfStartEx("H:\Ana\aaaMyPdf.pdf") = 0 Then
   While Imaging1.CreateImageFromTwain(hwnd) <> 0
         Imaging1.TwainAddGdPictureImageToPdf (Imaging1.GetNativeImage)
         Imaging1.CloseNativeImage
   Wend
   Imaging1.TwainPdfStop
End If
Imaging1.TwainCloseSource

End Sub


Ci joint le twainlog

Cordialement
Jissé
Attachments
aaaTwainlog.rar
(1.06 KiB) Downloaded 35 times
tAkAmAkA
 
Posts: 54
Joined: Mon Oct 27, 2008 6:38 pm

Re: Comment desactiver le recadrage auto

Postby Loïc » Mon May 10, 2010 4:13 pm

Salut,

Le problème vient du Scan. Les drivers TWAIN de chez HP sont très capricieux. Peut être qu'avec une version plus récente du driver le problème sera corrigé :? .

Cordialement,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Comment desactiver le recadrage auto

Postby tAkAmAkA » Tue May 11, 2010 1:08 pm

En effet, le code, développé avec Canon et Fuji donnait satisfaction.
Cordialement
Jissé
tAkAmAkA
 
Posts: 54
Joined: Mon Oct 27, 2008 6:38 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests

cron