I am loading a Multipage Tiff into the viewer as follows:
oGdPictureImaging = new GdPictureImaging();
intImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(strFileWithPath); //Load the document
oGdPictureImaging.AutoDeskew(intImageID);
GdViewer1.DisplayFromGdPictureImage(intImageID);
It appears that the AutoDeskew has only affected the first page. Shouldn't it Deskew all the pages?
Multipage Tiff and AutoDeskew
Re: Multipage Tiff and AutoDeskew
Hi
I think first you may need to open the file for write mode first
Then i think you need to go through each page in the tiff and deskew that way
This is the way i would do it.
Loic may have a better solution to this.
Cheers
Steve
I think first you may need to open the file for write mode first
Code: Select all
oGdPictureImaging.TiffOpenMultiPageForWrite(True)
Code: Select all
For iPages As Integer = 1 To image.TiffGetPageCount(intImageID)
oGdPictureImaging.TiffSelectPage(intImageID, iPages)
oGdPictureImaging.AutoDeskew(intImageID)
next
GdViewer1.DisplayFromGdPictureImage(intImageID);
Loic may have a better solution to this.
Cheers
Steve
Re: Multipage Tiff and AutoDeskew
The solution is perfect !
Thanks a lot Steve.
Loïc
Thanks a lot Steve.
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest