THotPDF.DAOpenFileReadOnly Method

Opens a PDF file in Direct Access mode as read-only.

Declaration

function DAOpenFileReadOnly(const InputFileName: TFileName; const Password: AnsiString= ''): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
InputFileNameName of the PDF file to open
PasswordPassword required to open an encrypted file

Return values

Returns the file handle index, or a value less than 0 upon failure.

Usage

See also