Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFDocument.LoadFromStream(TStream) Method

Loads a PDF document from the specified stream.

#Declaration

Delphi
procedure LoadFromStream(AStream: TStream);

#Parameters

Name Type Description
AStream TStream

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.

A Password Dialog Form

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