PdfPageView class.
More...
PdfPageView class.
A PdfPageView has methods to display the contents of a document page.
◆ GetDeviceHeight()
virtual int PdfPageView::GetDeviceHeight |
( |
| ) |
|
|
pure virtual |
◆ GetDeviceMatrix()
virtual void PdfPageView::GetDeviceMatrix |
( |
PdfMatrix * |
matrix | ) |
|
|
pure virtual |
Gets the matrix that transforms user space coordinates to pageview coordinates.
- Parameters
-
matrix | (Filled by the method) Pointer to the pageview matrix. |
◆ GetDeviceWidth()
virtual int PdfPageView::GetDeviceWidth |
( |
| ) |
|
|
pure virtual |
◆ PointToDevice()
Transforms a point's coordinates from user space to device space.
- Parameters
-
point | Pointer to the point whose coordinates are transformed, specified in user space coordinates. |
dev_point | (Filled by the method) Pointer to a point containing the device space coordinates corresponding to point. |
- See also
- PdfPageView::RectToDevice
◆ PointToPage()
Transforms a point's coordinates from device space to user space.
- Parameters
-
dev_point | Pointer to the point whose coordinates are transformed, specified in device space coordinates. |
point | (Filled by the method) Pointer to a point containing the user space coordinates corresponding to point. |
- See also
- PdfPageView::RectToPage
◆ RectToDevice()
Draws the contents of a page into the page view PsImage. This method just draws a bitmap. Provides control over the rendering with respect to PdfPageRenderParams. The PsImage remains in the cache as the page view class exists or next PdfPageViewDrawPage method is called.
- Parameters
-
params | Rendering parameters. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if page was rendered, false otherwise.
- See also
- PdfPageView::GetImage Gets the image data for a page view. You should never depend on these objects lasting the lifetime of the document. You should extract the information you need from the object immediately and refer to it no further in your code. NOTE: Do not destroy the returned PsImage when done with it.
- Returns
- Acquired Image data for page view. Returns null if there are no image data.
- See also
- PdfPageView::DrawPage Transforms a rectangle's coordinates from user space to device space. The resulting PdfDevRect will be normalized, that is, left < right and top < bottom.
- Parameters
-
rect | Pointer to the rectangle whose coordinates are transformed, specified in user space coordinates. |
dev_rect | (Filled by the method) Pointer to a rectangle containing the device space coordinates corresponding to rect. |
- See also
- PdfPageView::PointToDevice
◆ RectToPage()
Transforms a rectangle's coordinates from device space to user space. The resulting PdfDevRect will be normalized, that is, left < right and top < bottom.
- Parameters
-
rect | Pointer to the rectangle whose coordinates are transformed, specified in device space coordinates. |
dev_rect | (Filled by the method) Pointer to a rectangle containing the page space coordinates corresponding to rect. |
- See also
- PdfPageView::PointToPage
◆ Release()
virtual void PdfPageView::Release |
( |
| ) |
|
|
pure virtual |
Releases the page view resources. NOTE: The caller can call PdfPageView::Release to optimize a memory handling. Otherwise the page is responsible for freeing PdfPageViews resources.
- Parameters
-
page_view | The page view to delete. |
- See also
- PdfPage::AcquirePageView