THotPDF.DACopyFile Method
Copies a PDF file in Direct Access mode.
Declaration
function DACopyFile(const InputFileName: TFileName; const OutputFileName: TFileName; out PageCount: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
InputFileName | Path of the input PDF file |
OutputFileName | Path of the output PDF file |
PageCount | (Optional) out parameter receiving the number of pages copied |
Return values
Returns the operation status code, 1 signifies success.
Usage
- Call: THotPDF.DACopyFile
- Used to quickly copy a PDF file without completely loading it into memory.
- Loaded-document object references may be indirect; resolve arrays, dictionaries or streams before inspecting nested values