PdfBoxGdiExtensions.ToRectangleF Method

Maps this PdfBox structure to PdfPage coordinate system.

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

Syntax

C#
public static RectangleF ToRectangleF(
	this PdfBox box,
	double pageHeight
)
VB
<ExtensionAttribute>
Public Shared Function ToRectangleF ( 
	box As PdfBox,
	pageHeight As Double
) As RectangleF

Parameters

box
Type: BitMiracle.Docotic.Pdf.PdfBox
The box structure.
pageHeight
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).

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