Table of Contents

Method ToRectangleF

Namespace
BitMiracle.Docotic.Pdf.Gdi
Assembly
BitMiracle.Docotic.Pdf.Gdi.dll

ToRectangleF(PdfBox, double)

Maps this PdfBox structure to PdfPage coordinate system.

public static RectangleF ToRectangleF(this PdfBox box, double pageHeight)

Parameters

box PdfBox

The box structure.

pageHeight double

Height of PdfPage that is used to map coordinates.

Returns

RectangleF

RectangleF structure expressed in PdfPage 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.