In Gdpicturepro 3.8.1, isblank(98) returns true, even when the page has content.
If page has more content, It returns false aas expected. However, isbLank() also returns true/false inconsistently. Pages having less content are sometimes indicated as blank pages and sometimes as having content.
The code is as follows:
- Code: Select all
While Imaging1.CreateImageFromTwain(Me.hWnd) <> 0
If Not Imaging1.IsBlank(98) Then
nImageCount = nImageCount + 1
nImageID = Imaging1.GetNativeImage
'Saves to native pdf
Call Imaging1.TwainAddGdPictureImageToPdf(nImageID)
'Saves to native multipage tiff image
If nImageCount = 1 Then
Call Imaging1.TiffSaveAsNativeMultiPage("c:\output.tif", CompressionLZW)
Else
Call Imaging1.TiffAddToNativeMultiPage(nImageID)
Imaging1.CloseImage (nImageID)
End If
End If
Wend
Is there a reliable alternative to using isBlank() or has it been fixed in later versions?
