Back to Devexpress

TdxPDFCustomViewer.LoadFromStream(TStream) Method

vcl-dxpdfviewer-dot-tdxpdfcustomviewer-dot-loadfromstream-x28-system-dot-classes-dot-tstream-x29.md

latest1.8 KB
Original Source

TdxPDFCustomViewer.LoadFromStream(TStream) Method

Loads a PDF document from the specified stream.

Declaration

delphi
procedure LoadFromStream(AStream: TStream);

Parameters

NameType
AStreamTStream

Remarks

Call this procedure and pass a source stream as the AStream parameter to load a PDF document. If the document is protected with a password, a LoadFromStream procedure call invokes the “Enter Password“ dialog to prompt an end user to enter a user or owner password.

You can handle the OnGetPassword dialog to specify the required password without end-user interaction. Refer to the following topic for detailed information on PDF document security settings: Password Protection

A successful LoadFromStream procedure call raises the OnDocumentLoaded event.

See Also

TdxPDFCustomViewer.IsDocumentLoaded

TdxPDFCustomViewer.LoadFromFile

TdxPDFCustomViewer Class

TdxPDFCustomViewer Members

dxPDFViewer Unit