PdfDocument.LoadFromFileAsync PdfDocument.LoadFromFileAsync PdfDocument.LoadFromFileAsync PdfDocument.LoadFromFileAsync PdfDocument.LoadFromFileAsync Method

Definition

Overloads

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.

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.

public : static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file)
static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file) const;
public static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file)
Public Shared Function LoadFromFileAsync(file As IStorageFile) As IAsyncOperation(Of PdfDocument)
Windows.Data.Pdf.PdfDocument.loadFromFileAsync(file).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file, which represents a Portable Document Format (PDF) document.

Returns

See also

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.

public : static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file, Platform::String password)
static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file, winrt::hstring password) const;
public static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file, String password)
Public Shared Function LoadFromFileAsync(file As IStorageFile, password As String) As IAsyncOperation(Of PdfDocument)
Windows.Data.Pdf.PdfDocument.loadFromFileAsync(file, password).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file, which represents a Portable Document Format (PDF) document.

password
String String String

The password to open the Portable Document Format (PDF) document, if it requires one.

Returns

Remarks

If the Portable Document Format (PDF) document does not require a password, this method ignores it.

This method returns an ERROR_WRONG_PASSWORD error if the wrong password is specified.

See also