PdfDocument.LoadFromStreamAsync Methode

Definition

Überlädt

LoadFromStreamAsync(IRandomAccessStream)

Erstellt ein PdfDocument-Objekt , das ein PDF-Dokument (Portable Document Format) darstellt, aus einem Datenstrom, der ein PDF-Dokument (Portable Document Format) im Dateisystem darstellt.

LoadFromStreamAsync(IRandomAccessStream, String)

Erstellt ein PdfDocument-Objekt , das ein PDF-Dokument (Portable Document Format) darstellt, aus einem Datenstrom, der ein PDF-Dokument (Portable Document Format) im Dateisystem darstellt. Verwenden Sie diese Methode, wenn das PDF-Dokument (Portable Document Format) kennwortgeschützt ist.

LoadFromStreamAsync(IRandomAccessStream)

Erstellt ein PdfDocument-Objekt , das ein PDF-Dokument (Portable Document Format) darstellt, aus einem Datenstrom, der ein PDF-Dokument (Portable Document Format) im Dateisystem darstellt.

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)

Parameter

inputStream
IRandomAccessStream

Der Datenstrom, der ein PDF-Dokument (Portable Document Format) darstellt.

Gibt zurück

Der asynchronen Vorgang.

Attribute

Weitere Informationen

Gilt für:

LoadFromStreamAsync(IRandomAccessStream, String)

Erstellt ein PdfDocument-Objekt , das ein PDF-Dokument (Portable Document Format) darstellt, aus einem Datenstrom, der ein PDF-Dokument (Portable Document Format) im Dateisystem darstellt. Verwenden Sie diese Methode, wenn das PDF-Dokument (Portable Document Format) kennwortgeschützt ist.

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)

Parameter

inputStream
IRandomAccessStream

Der Datenstrom, der ein PDF-Dokument (Portable Document Format) darstellt.

password
String

Platform::String

winrt::hstring

Das Kennwort zum Öffnen des PDF-Dokuments (Portable Document Format), falls erforderlich.

Gibt zurück

Der asynchronen Vorgang.

Attribute

Hinweise

Wenn für das PDF-Dokument (Portable Document Format) kein Kennwort erforderlich ist, wird es von dieser Methode ignoriert.

Diese Methode gibt einen ERROR_WRONG_PASSWORD Fehler zurück, wenn das falsche Kennwort angegeben wird.

Weitere Informationen

Gilt für: