Method FromRectangle
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
FromRectangle(PdfRectangle, double)
Maps PdfRectangle structure expressed in PdfPage coordinate system to PDF's default user space.
public static PdfBox FromRectangle(PdfRectangle rectangle, double pageHeight)
Parameters
rectangle
PdfRectanglePdfRectangle structure expressed in PdfPage coordinate system.
pageHeight
doubleHeight of PdfPage that is used to map coordinates.
Returns
Remarks
In PdfPage coordinate system origin is located at the upper-left corner of the page, positive Y axis extends vertically downward.
In default user space the positive Y axis extends vertically upward.