pub struct PdfPage<'a> { /* private fields */ }
Expand description

A single page in a PdfDocument.

In addition to its own intrinsic properties, a PdfPage serves as the entry point to all object collections related to a single page in a PDF file. These collections include:

Implementations

Returns the zero-based page index of this PdfPage in its containing PdfDocument.

Returns the label assigned to this PdfPage, if any.

Returns the width of this PdfPage in device-independent points. One point is 1/72 inches, roughly 0.358 mm.

Returns the height of this PdfPage in device-independent points. One point is 1/72 inches, roughly 0.358 mm.

Returns the width and height of this PdfPage expressed as a PdfRect.

Returns PdfPageOrientation::Landscape if the width of this PdfPage is greater than its height; otherwise returns PdfPageOrientation::Portrait.

Returns true if this PdfPage has orientation PdfPageOrientation::Portrait.

Returns true if this PdfPage has orientation PdfPageOrientation::Landscape.

Returns any intrinsic rotation encoded into this document indicating a rotation should be applied to this PdfPage during rendering.

Sets the intrinsic rotation that should be applied to this PdfPage during rendering.

Returns true if any object on the page contains transparency.

Returns the collection of bounding boxes defining the extents of this PdfPage.

Returns the paper size of this PdfPage.

Returns the collection of text boxes contained within this PdfPage.

Returns the collection of page objects contained within this PdfPage.

Returns the collection of annotations that have been added to this PdfPage.

Returns a PdfBitmap using pixel dimensions, rotation settings, and rendering options configured in the given PdfBitmapConfig.

See also PdfPage::get_bitmap(), which directly creates a PdfBitmap object from this page using caller-specified pixel dimensions and page rotation settings.

Returns a PdfBitmap with the given pixel dimensions and render-time rotation for this PdfPage containing the rendered content of this PdfPage.

It is the responsibility of the caller to ensure the given pixel width and height correctly maintain the page’s aspect ratio.

See also PdfPage::get_bitmap_with_config(), which calculates the correct pixel dimensions, rotation settings, and rendering options to apply from a PdfBitmapConfig object.

Trait Implementations

Closes the PdfPage, releasing held memory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.