SetCustomInformation
Documenteigenschappen
Beschrijving
Deze functie wordt gebruikt om custom metadata in het document op te slaan. Deze waarden kunnen later met de functie GetCustomInformation uit het document worden gelezen. De data wordt in de Document Information Dictionary opgeslagen. Private content of structuurinformatie hoort liever in de Document Catalog via de functie SetCatalogInformation
Syntaxis
Delphi
Function TPDFlib.SetCustomInformation(Const Key, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetCustomInformation(Key As String, NewValue As String) As Long
DLL
int DLSetCustomInformation(int InstanceID, const wchar_t * Key, const wchar_t * NewValue);
Parameters
| Key | Geeft op welke sleutel moet worden ingesteld |
|---|---|
| NewValue | De waarde waarmee de sleutel wordt ingesteld |
Retourwaarden
| 0 | De waarde kon niet worden ingesteld. De parameter Key mag niet "Producer", "Creator", "Subject", "Title", "Keywords" of "Author" zijn. Gebruik voor deze sleutels de functie SetInformation |
|---|---|
| 1 | De waarde van de sleutel is ingesteld |