Click or drag to resize

PDFViewCtrlGetDeviceTransform Method

Gets device transformation matrix from current page

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public Matrix2D GetDeviceTransform()

Return Value

Type: Matrix2D
the device transformation matrix. The device transformation matrix maps the page coordinate system to screen (or device) coordinate system.
Remarks
to obtain a transformation matrix that maps screen coordinates to page coordinates, you can invert the device matrix.
Examples
Common::Matrix2D scr2page(pdfviewctrl.GetDeviceTransform()); scr2page.Inverse();
See Also