Class PdfPage

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

A page of a PdfDocument. Draw on it through Content, add links and form fields, or rotate it. Pages are created with AddPage(PageSize?, PageOrientation?) or ImportPages(PdfReader).

public sealed class PdfPage
Inheritance
PdfPage
Inherited Members

Remarks

Coordinates are points (1/72 inch) measured from the bottom-left corner of the page.

Properties

Content

The page's drawing surface. For imported pages, what you draw is placed on top of the original content.

Height

The page height in points.

Reference

Reference to the page object; a low-level handle used when building PDF structures by hand.

Rotation

Clockwise rotation applied by viewers when showing or printing the page: 0, 90, 180 or 270 degrees. Drawing coordinates are not affected. Any multiple of 90 is accepted and normalised, so -90 becomes 270.

Size

The page size (its media box). For imported pages, the size of the source page.

Width

The page width in points.

Methods

AddCheckBox(string, double, double, double, bool)

Adds a square check box.

AddDropdown(string, double, double, double, double, IEnumerable<string>, string?)

Adds a dropdown list (combo box).

AddLink(double, double, double, double, PdfPage, double?, bool, PdfColor?)

Makes a rectangular area of the page a link to another page of the same document.

AddLink(double, double, double, double, Uri, bool, PdfColor?)

Makes a rectangular area of the page a link to a web address or other URI.

AddListBox(string, double, double, double, double, IEnumerable<string>, string?)

Adds a scrollable list box; set MultiSelect to allow several selections.

AddPushButton(string, double, double, double, double, string)

Adds a push button with a caption. Set Action to say what it does when clicked.

AddRadioGroup(string, double, params (string Value, double X, double Y)[])

Adds a group of round radio buttons on this page, of which at most one can be selected. Use AddRadioGroup(string) and AddOption(PdfPage, string, double, double, double) to spread options over several pages.

AddSignatureField(string, double, double, double, double)

Adds an empty signature field: a placeholder that a signing application can fill later. SoftZenPdf does not create digital signatures itself.

AddTextField(string, double, double, double, double, string)

Adds a single-line text field; set Multiline for a text area.

DrawLink(string, double, double, PdfFont, double, PdfPage, double?, PdfColor?, bool)

Draws a line of link text, optionally underlined, and makes it a link to another page of the same document.

DrawLink(string, double, double, PdfFont, double, Uri, PdfColor?, bool)

Draws a line of link text, optionally underlined, and makes it a link to a web address or other URI.