Back to Devexpress

TdxPDFDocument.LoadFromStream(TStream) Method

vcl-dxpdfdocument-dot-tdxpdfdocument-dot-loadfromstream-x28-system-dot-classes-dot-tstream-x29.md

latest1.6 KB
Original Source

TdxPDFDocument.LoadFromStream(TStream) Method

Loads a PDF document from the specified stream.

Declaration

delphi
procedure LoadFromStream(AStream: TStream);

Parameters

NameTypeDescription
AStreamTStream

The source stream object.

|

Remarks

If the source document is protected with a password, a LoadFromStream procedure call invokes the “Enter Password“ dialog to prompt a user to enter a user or owner password.

You can handle the OnGetPassword event 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 LoadFromStream procedure call raises the OnLoaded event once a document is successfully loaded.

See Also

TdxPDFDocument.LoadFromFile

TdxPDFDocument Class

TdxPDFDocument Members

dxPDFDocument Unit