Table of Contents

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 PdfRectangle

PdfRectangle structure expressed in PdfPage coordinate system.

pageHeight double

Height of PdfPage that is used to map coordinates.

Returns

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.