PdfDocument PdfDocument PdfDocument PdfDocument PdfDocument Class

Definition

Represents a Portable Document Format (PDF) document.

public : sealed class PdfDocument : IPdfDocument
struct winrt::Windows::Data::Pdf::PdfDocument : IPdfDocument
public sealed class PdfDocument : IPdfDocument
Public NotInheritable Class PdfDocument Implements IPdfDocument
// 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)

Remarks

Methods of this class return an STG_E_READFAULT error if there is a problem in reading the Portable Document Format (PDF) document.

Properties

IsPasswordProtected IsPasswordProtected IsPasswordProtected IsPasswordProtected IsPasswordProtected

Gets whether the Portable Document Format (PDF) document is password-protected.

PageCount PageCount PageCount PageCount PageCount

Gets the number of pages in the Portable Document Format (PDF) document.

Methods

GetPage(UInt32) GetPage(UInt32) GetPage(UInt32) GetPage(UInt32) GetPage(UInt32)

Gets a page from a Portable Document Format (PDF) document.

LoadFromFileAsync(IStorageFile) LoadFromFileAsync(IStorageFile) LoadFromFileAsync(IStorageFile) LoadFromFileAsync(IStorageFile) LoadFromFileAsync(IStorageFile)

Outputs an asynchronous operation. When the operation completes, a PdfDocument object is returned, which represents a Portable Document Format (PDF) document.

LoadFromFileAsync(IStorageFile, String) LoadFromFileAsync(IStorageFile, String) LoadFromFileAsync(IStorageFile, String) LoadFromFileAsync(IStorageFile, String) LoadFromFileAsync(IStorageFile, String)

Outputs an asynchronous operation. When the operation completes, a PdfDocument object is returned, which represents a Portable Document Format (PDF) document. Use this method if the Portable Document Format (PDF) document is password-protected.

LoadFromStreamAsync(IRandomAccessStream) LoadFromStreamAsync(IRandomAccessStream) LoadFromStreamAsync(IRandomAccessStream) LoadFromStreamAsync(IRandomAccessStream) LoadFromStreamAsync(IRandomAccessStream)

Creates a PdfDocument object, representing a Portable Document Format (PDF) document, from a stream of data that represents a Portable Document Format (PDF) document in the file system.

LoadFromStreamAsync(IRandomAccessStream, String) LoadFromStreamAsync(IRandomAccessStream, String) LoadFromStreamAsync(IRandomAccessStream, String) LoadFromStreamAsync(IRandomAccessStream, String) LoadFromStreamAsync(IRandomAccessStream, String)

Creates a PdfDocument object, representing a Portable Document Format (PDF) document, from a stream of data that represents a Portable Document Format (PDF) document in the file system. Use this method if the Portable Document Format (PDF) document is password-protected.

See Also