Class Utils
Pdf Utilities
Inheritance
System.Object
Utils
Namespace: PSPDFKit.Pdf
Assembly: PSPDFKit.dll
Syntax
public static class Utils
Methods
InstantToPdfCoords(Rect, Double)
Convert an InstantJSON Rect to a PdfRect.
Declaration
public static PdfRect InstantToPdfCoords(Rect instantRect, double pageHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| Windows.Foundation.Rect | instantRect | The rect in InstantJSON coordinates |
| System.Double | pageHeight | The height of the PDF page. |
Returns
| Type | Description |
|---|---|
| PdfRect | The rect in PDF coordinate space. |
PdfToInstantCoords(PdfRect, Double)
Convert a PdfRect to an InstantJSON Rect.
Declaration
public static Rect PdfToInstantCoords(PdfRect pdfRect, double pageHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfRect | pdfRect | The rect in PDF coordinates |
| System.Double | pageHeight | The height of the PDF page. |
Returns
| Type | Description |
|---|---|
| Windows.Foundation.Rect | The rect in InstantJSON coordinate space. |