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

NamePurpose
FileHandleDocument file handle in direct-access mode
KeyDocument info key to set (Title, Author, for example)
ValueThe corresponding value

Return values

Returns the new object number involved in the operation, or 0 if failed or not indexed.

Usage

See also