EHPDFHeadlessDocumentError.Code
Unit: HPDFHeadlessDocument
property Code: THPDFHeadlessDiagnosticCode read FCode;
Return the diagnostic supplied at the moment the exception was created
Cancellation raises EHPDFOperationCancelled separately; never infer unsupported-format diagnostics from message text