This solves part of the problem. Could you help me with the following?
I need to visualize the document so I'll load into a GDViewer.
I need to use the Thumbnails too.
The document could have more than one Page.
The ROI will be set on the GDViewer
I've try all the possibilities but the correct one (I don't know what it is)
How can I do that?
Again, can you help me?
You have to do the following:
- From the GdViewer, extract coordinate of the rectangle of selection in inches. See: GetRectCoordinatesOnDocumentInches() method.
- Then convert the coordinates to pixel, according to the resolution used to rasterize the page.
This should be something like this, for 200 DPI rendering:
Code: Select all
GdViewer1.GetRectCoordinatesOnDocumentInches(left, top, width, height) RasterPageID = oGdPicturePDF.RenderPageToGdPictureImage(200, True) oGdPictureImaging.SetROI(left * 200, top * 200, width * 200, height * 200)
Who is online
Users browsing this forum: Bing [Bot] and 2 guests