Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PdfPage Class

Definition

Namespace:
Windows.Data.Pdf

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public ref class PdfPage sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PdfPage final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PdfPage : System.IDisposable
Public NotInheritable Class PdfPage
Implements IDisposable
Inheritance
Object Platform::Object IInspectable PdfPage
Attributes
Implements

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Name Description
Dimensions

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

Index

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

PreferredZoom

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

Rotation

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

Size

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

Methods

Name Description
Close()

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

Dispose()

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

PreparePageAsync()

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

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.

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.

Applies to

See also


Feedback

Was this page helpful?