THPDFCollectionSchemaFieldInfo Record
Describes one field of a loaded portfolio's collection schema: dictionary key, display name, subtype, sort order, and visibility and editability flags
Declaration
THPDFCollectionSchemaFieldInfo= record
Key: AnsiString;
DisplayName: AnsiString;
Subtype: THPDFCollectionFieldSubtype;
Order: Integer;
Visible: boolean;
Editable: boolean;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Key | Key of the field in the collection /Schema dictionary, as used by collection item metadata |
DisplayName | Value of the /N entry shown as the column caption in portfolio viewers |
Subtype | THPDFCollectionFieldSubtype parsed from the /Subtype entry, such as cfsText, cfsDate, or cfsSize |
Order | Value of the /O sort-order entry, or -1 when the field carries none |
Visible | Value of the /V entry; defaults to true when the entry is absent |
Editable | Value of the /E entry; defaults to false when the entry is absent |
Usage notes
- Enumerate schema fields with
THotPDF.GetLoadedCollectionSchemaFieldCountand read each one withTHotPDF.GetLoadedCollectionSchemaFieldInfo - The record describes the read-only view of an existing schema; it is filled by index and returns
falsewhen the document has no collection - Use
Keywith the portfolio item-metadata accessors to read or write per-file values for that column