PdfBoxGdiExtensions.ToRectangleF Method

Maps this PdfBox structure to PdfPage coordinate system.

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


public static RectangleF ToRectangleF(
	this PdfBox box,
	double pageHeight
Public Shared Function ToRectangleF ( 
	box As PdfBox,
	pageHeight As Double
) As RectangleF


Type: BitMiracle.Docotic.Pdf.PdfBox
The box structure.
Type: System.Double
Height of PdfPage that is used to map coordinates.

Return Value

Type: RectangleF
RectangleF structure expressed in PdfPage coordinate system.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfBox. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).


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