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
| Name | Purpose |
|---|---|
InputFileName | Name of the PDF file to open |
Password | Password required to open an encrypted file |
Return values
Returns the file handle index, or a value less than 0 upon failure.
Usage
- Call: THotPDF.DAOpenFileReadOnly
- Used to rapidly load document states from disk to perform operations with low memory footprints.