PdfPage Class
Definition
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
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Properties
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 based on its related CropBox, MediaBox, and Rotation property values. |
Methods
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) |
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) |
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. |
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for