SetWTPDFMode
Tagged PDF, PDF compatibility
Description
Enables one or both WTPDF 1.0 conformance declarations for the selected document
Syntax
Delphi
Function TPDFlib.SetWTPDFMode(Const Language: WideString; Conformance: Integer): Integer;DLL
int DLSetWTPDFMode(int InstanceID, const wchar_t* Language, int Conformance);
int DLSetWTPDFModeA(int InstanceID, const char* Language, int Conformance);ActiveX
Function PDFlib::SetWTPDFMode(Language As String, Conformance As Long) As LongParameters
| Language | BCP 47 document language; an empty value preserves the current catalogue language |
|---|---|
| Conformance | Bit mask where 1 declares accessibility, 2 declares reuse, and 3 declares both |
Return values
| 0 | The conformance value is outside 1 to 3, no document is selected, or the mode could not be enabled |
|---|---|
| 1 | The declarations were written |
Remarks
The method raises the effective PDF version to 2.0 and writes standards-defined PDF Declaration URIs in an RDF bag while preserving unrelated declarations
WTPDF can be combined with SetPDFUA2Mode