SetPDFUA2Mode
Tagged PDF, PDF compatibility
Description
Enables the PDF/UA-2 conformance profile for the selected document
Syntax
Delphi
Function TPDFlib.SetPDFUA2Mode(Const Language: WideString): Integer;DLL
int DLSetPDFUA2Mode(int InstanceID, const wchar_t* Language);
int DLSetPDFUA2ModeA(int InstanceID, const char* Language);ActiveX
Function PDFlib::SetPDFUA2Mode(Language As String) As LongParameters
| Language | BCP 47 document language such as en-US; an empty value leaves the current catalogue language unchanged |
|---|
Return values
| 0 | No document is selected or the mode could not be enabled |
|---|---|
| 1 | The mode was enabled |
Remarks
The method raises the effective PDF version to 2.0, writes pdfuaid:part=2 and pdfuaid:rev=2024, enables marked-document metadata, and exposes the document title in viewer preferences
The established SetPDFUAMode method continues to select PDF/UA-1