PdfDocument.LoadFromStreamAsync Method

Definition

Overloads

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)

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.

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.

public:
 static IAsyncOperation<PdfDocument ^> ^ LoadFromStreamAsync(IRandomAccessStream ^ inputStream);
/// [Windows.Foundation.Metadata.Overload("LoadFromStreamAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PdfDocument> LoadFromStreamAsync(IRandomAccessStream const& inputStream);
[Windows.Foundation.Metadata.Overload("LoadFromStreamAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PdfDocument> LoadFromStreamAsync(IRandomAccessStream inputStream);
function loadFromStreamAsync(inputStream)
Public Shared Function LoadFromStreamAsync (inputStream As IRandomAccessStream) As IAsyncOperation(Of PdfDocument)

Parameters

inputStream
IRandomAccessStream

The stream of data, which represents a Portable Document Format (PDF) document.

Returns

The asynchronous operation.

Attributes

See also

Applies to

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.

public:
 static IAsyncOperation<PdfDocument ^> ^ LoadFromStreamAsync(IRandomAccessStream ^ inputStream, Platform::String ^ password);
/// [Windows.Foundation.Metadata.Overload("LoadFromStreamWithPasswordAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PdfDocument> LoadFromStreamAsync(IRandomAccessStream const& inputStream, winrt::hstring const& password);
[Windows.Foundation.Metadata.Overload("LoadFromStreamWithPasswordAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PdfDocument> LoadFromStreamAsync(IRandomAccessStream inputStream, string password);
function loadFromStreamAsync(inputStream, password)
Public Shared Function LoadFromStreamAsync (inputStream As IRandomAccessStream, password As String) As IAsyncOperation(Of PdfDocument)

Parameters

inputStream
IRandomAccessStream

The stream of data, which represents a Portable Document Format (PDF) document.

password
String

Platform::String

winrt::hstring

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

Returns

The asynchronous operation.

Attributes

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

Applies to