Maps PdfRectangle structure expressed in PdfPage coordinate system to PDF's default user space.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static PdfBox FromRectangle(
	PdfRectangle rectangle,
	double pageHeight
)
VB
Public Shared Function FromRectangle ( 
	rectangle As PdfRectangle,
	pageHeight As Double
) As PdfBox

Parameters

rectangle
Type: BitMiracle.Docotic.Pdf.PdfRectangle
PdfRectangle structure expressed in PdfPage coordinate system.
pageHeight
Type: System.Double
Height of PdfPage that is used to map coordinates.

Return Value

Type: PdfBox
PdfBox structure expressed in PDF's default user space coordinate system.

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.

See Also