I am trying to save a scanned image to PDF. The scanned image is full size letter/legal. I need to save the image resizing it to leave a 2 inch margin on top or bottom. Is this possible? If so, how do I accomplish it. Attached is what I have for the current processing.
Dim file As File = Nothing
Dim imageID As Integer
If GdPictureImaging.TwainOpenSource(Me.Handle, lblScannerName.Text) Then
InitScanConfig()
imageID = GdPictureImaging.TwainAcquireToGdPictureImage(Me.Handle)
ScanRecord = imageID
GdPicturePDF.NewPDF()
If imageID <> 0 Then
GdPicturePDF.AddImageFromGdPictureImage(imageID, False, True)
GdViewer1.ZoomMode = ViewerZoomMode.ZoomModeFitToViewer
GdViewer1.DisplayFromGdPictureImage(imageID)
End If
Else
ScanRecord = 0
End If
GdPicturePDF.SaveToFile(strDocumentPath & Year(Now()) & "\" & lblFirmNumber.Text & ".pdf")
Save resize image
Re: Save resize image
Hi,
Use AddImageFromGdPictureImage() method with the DrawImage parameter set to false:
https://www.gdpicture.com/guides/gdpicture/web ... lean).html
And then draw that image with the required size using DrawImage() method:
https://www.gdpicture.com/guides/gdpicture/web ... Image.html
Use AddImageFromGdPictureImage() method with the DrawImage parameter set to false:
https://www.gdpicture.com/guides/gdpicture/web ... lean).html
And then draw that image with the required size using DrawImage() method:
https://www.gdpicture.com/guides/gdpicture/web ... Image.html
Who is online
Users browsing this forum: No registered users and 1 guest