PdfPage PdfPage PdfPage PdfPage PdfPage Class

Definition

Represents a single page in a Portable Document Format (PDF) document.

public : sealed class PdfPage : IClosable
struct winrt::Windows::Data::Pdf::PdfPage : IClosable
public sealed class PdfPage : IDisposable
Public NotInheritable Class PdfPage Implements IDisposable
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Dimensions Dimensions Dimensions Dimensions Dimensions

Gets the group of dimension properties for a single page in a Portable Document Format (PDF) document.

Index Index Index Index Index

Gets the relative position of the Portable Document Format (PDF) page within its parent Portable Document Format (PDF) document.

PreferredZoom PreferredZoom PreferredZoom PreferredZoom PreferredZoom

Gets the Portable Document Format (PDF) page's preferred magnification factor.

Rotation Rotation Rotation Rotation Rotation

Gets the number of degrees that the Portable Document Format (PDF) page will be rotated when it's displayed or printed.

Size Size Size Size Size

Gets the Portable Document Format (PDF) page's size based on its related CropBox, MediaBox, and Rotation property values.

Methods

Close() Close() Close() Close() Close()

Releases all resources associated with the Portable Document Format (PDF) page.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

PreparePageAsync() PreparePageAsync() PreparePageAsync() PreparePageAsync() PreparePageAsync()

Begins building the Portable Document Format (PDF) page. After this method finishes, the Portable Document Format (PDF) page is completely built.

RenderToStreamAsync(IRandomAccessStream) RenderToStreamAsync(IRandomAccessStream) RenderToStreamAsync(IRandomAccessStream) RenderToStreamAsync(IRandomAccessStream) RenderToStreamAsync(IRandomAccessStream)

Outputs a stream of data, which represents a Portable Document Format (PDF) page's contents, as an asynchronous action. This asynchronous action can be used to create an image of the Portable Document Format (PDF) page.

RenderToStreamAsync(IRandomAccessStream, PdfPageRenderOptions) RenderToStreamAsync(IRandomAccessStream, PdfPageRenderOptions) RenderToStreamAsync(IRandomAccessStream, PdfPageRenderOptions) RenderToStreamAsync(IRandomAccessStream, PdfPageRenderOptions) RenderToStreamAsync(IRandomAccessStream, PdfPageRenderOptions)

Takes a set of display settings, applies them to the output of a Portable Document Format (PDF) page's contents, and creates a stream with the customized, rendered output as an asynchronous action. This asynchronous action can be used to create a customized display image of the Portable Document Format (PDF) page.

See also