Skip to main content

TdxPDFDocument.LoadFromFile(string) Method

Loads a PDF document from the specified file.

Declaration

procedure LoadFromFile(const AFileName: string);

Parameters

Name Type Description
AFileName string

An absolute or relative path to a file.

Remarks

Call the LoadFromFile procedure and pass the absolute or relative path to a PDF file as the AFileName parameter to load the file to the PDF document container.

Note

The LoadFromFile procedure has the same behavior as the LoadFromStream procedure, since LoadFromFile calls it internally.

See Also