SetCatalogInformation
Documenteigenschappen
Beschrijving
Met deze functie slaat u custominformatie op in het PDF-document. Dit lijkt op de functie SetCustomInformation, maar de informatie wordt in de Document Catalog opgeslagen in plaats van in de Document Information Dictionary. Metadata hoort in de Document Information Dictionary via SetCustomInformation; private content of structuurinformatie hoort in de Document Catalog via deze functie
De sleutel mag geen Catalog-systeemsleutel zijn die door de library of de PDF-specificatie wordt beheerd. Gereserveerde namen omvatten Type, Version, Extensions, Pages, PageLabels, Names, Dests, ViewerPreferences, OpenAction, AA, AcroForm, Metadata, StructTreeRoot, MarkInfo, Lang, SpiderInfo, OutputIntents, PieceInfo, OCProperties, Perms, Legal, Requirements, Collection en NeedsRendering
Syntaxis
Delphi
Function TPDFlib.SetCatalogInformation(Const Key, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetCatalogInformation(Key As String, NewValue As String) As Long
DLL
int DLSetCatalogInformation(int InstanceID, const wchar_t * Key, const wchar_t * NewValue);
Parameters
| Key | De naam van de sleutel die moet worden ingesteld. Deze sleutel moet een speciaal prefix hebben dat door Adobe aan u is toegewezen om conflicten met andere software te voorkomen |
|---|---|
| NewValue | De nieuwe waarde van de opgegeven sleutel |
Retourwaarden
| 0 | De opgegeven sleutel kon niet worden ingesteld; het was mogelijk een systeemsleutel |
|---|---|
| 1 | De waarde van de opgegeven sleutel is ingesteld |