THotPDF.DASetDocumentInfo Method
Rapidly sets or updates metadata (Info dictionary) entries of a PDF document in direct access mode.
Declaration
function DASetDocumentInfo(FileHandle: Integer; const Key: AnsiString; const Value: AnsiString): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | Document file handle in direct-access mode |
Key | Document info key to set (Title, Author, for example) |
Value | The corresponding value |
Return values
Returns the new object number involved in the operation, or 0 if failed or not indexed.
Usage
- Call: THotPDF.DASetDocumentInfo
- Called when directly modifying metadata properties of an existing PDF file without fully loading the document into memory.