5 #ifndef PDFTRON_H_CPPPDFPDFAPDFACompliance
6 #define PDFTRON_H_CPPPDFPDFAPDFACompliance
10 #include <C/PDF/PDFA/TRN_PDFACompliance.h>
346 PDFACompliance(
bool convert,
const char* buf,
size_t buf_size,
const char* password = 0,
Conformance conf =
e_Level1B,
ErrorCode* exceptions = 0,
int num_exceptions = 0,
int max_ref_objs = 10,
bool first_stop =
false);
347 PDFACompliance(
bool convert,
const unsigned char* buf,
size_t buf_size,
const char* password = 0,
Conformance conf =
e_Level1B,
ErrorCode* exceptions = 0,
int num_exceptions = 0,
int max_ref_objs = 10,
bool first_stop =
false);
386 void SaveAs(
const UString& file_path,
bool linearized =
false);
396 std::vector<unsigned char>
SaveAs(
bool linearized =
false);
410 void SaveAs(
const char* &out_buf,
size_t& out_buf_size,
bool linearized =
false);
483 #include <Impl/PDFACompliance.inl>
485 #endif // PDFTRON_H_CPPPDFPDFAPDFACompliance
'pdfaField:valueType' not found.
The Metadata object stream contains Filter key.
An ICCBased CMYK color space is identical to the current PDF/A OutputIntent color profile or the curr...
'pdfaProperty:valueType' not found.
Some text can't be mapped to Unicode.
Transparency used (Page or Form XObject with transparency group).
PDFACompliance::ErrorCode GetError(size_t idx)
'pdfaExtension:schemas' is using a wrong value type.
Symbolic TrueType fonts shall not contain an Encoding entry in the font dictionary, and the 'cmap' subtable in the embedded font program shall either contain the Microsoft Symbol (3,0 - Platform ID=3, Encoding ID=0) or the Mac Roman (1,0 - Platform ID=1, Encoding ID=0) encoding.
XMP property not predefined and no extension schema present.
Widths in embedded font are inconsistent with /Widths entry in the font dictionary.
Invalid PDF/A part number.
JPEG2000: The bit-depth JPEG2000 data must be in range 1-38.
AP has an N entry whose value is invalid.
Missing PDF/A identifier.
'pdfaType:field' is using a wrong value type.
Page Group entry is missing in a document without OutputIntent.
Using JPEG2000 compression (PDF 1.4 compatibility).
The NeedAppearances flag in the interactive form dictionary is set to true.
Transparency used (Blend mode is not 'Normal').
The required field namespace prefix is 'pdfaProperty'.
A non-standard structure type does not map to a standard type.
Subsection header: starting object number and range not separated by a single space.
The number of nested q/Q operators is greater than 28.
Not a valid ICC color profile.
If a document information dictionary is present, it shall only contain a ModDate entry.
Bad Permission Dictionary.
3D stream shall have a Subtype entry with a value which is either U3D or PRC.
An annotation dictionary contains the CA key with a value other than 1.0.
For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall cont...
'pdfaType:type' is using a wrong value type.
'endobj' not preceded by EOL marker
Required property 'valueType' missing in PDF/A Schema Value Type.
Catalog contains NeedsRendering.
An annotation's IC entry present but no OutputIntent present.
DestOutputProfile-s in OutputIntents array do not match.
Document information entry 'CreationDate' not synchronized with XMP.
Optional content Contains AS entry.
'xref' and cross reference subsection header not separated by a single EOL marker.
Contains a reference XObject.
'pdfaField:description' not found.
'bytes' and 'encoding' attributes are allowed in the header of an XMP packet.
'pdfaField:valueType' is using a wrong type.
Device-specific color space used in an alternate color space.
Document does not start with % character.
An annotation dictionary is missing F key.
An annotation's C entry present but OutputIntent has non-RGB destination profile. ...
The trailer dictionary does not contain ID.
Transparency used (XObject with soft mask).
Wrong value type for predefined XMP property.
Trailer dictionary contains Encrypt.
An interactive form field contains an action.
Linearized file: ID in 1st page and last trailer are different.
The 'endstream' token is not preceded by EOL.
The Info key shall not be present in the trailer dictionary unless there exists a PieceInfo entry in ...
An annotation's 'Print' flag is not set.
Transparency used ('CA' value is not 1.0).
Embedded file has no MIME type entry.
Caret annotation is not permitted.
The required namespace prefix for extension schema is 'pdfaExtension'.
An annotation's C entry present but no OutputIntent present.
The font is not embedded.
alternateSpace is different in Separations with the same colorant name.
Array contains more than 8191 elements.
Required description for 'pdfaField::valueType' is missing.
Polygon annotation is not permitted.
'pdfaType:description' not found.
Contains a non-predefined Named action.
'pdfaField:name' is using a wrong value type.
FileSpec is missing F or UF key.
If the Version key is present in the document catalog dictionary, the first character in its value sh...
3D annotation is not permitted.
Contains compressed object streams (PDF 1.4 compatibility).
The document catalog does not contain Metadata stream.
The required field namespace prefix is 'pdfaSchema'.
'pdfaType:namespaceURI' not found.
Contains the EmbeddedFiles key.
An annotation's 'Hidden' flag is set.
'pdfaField:description' is using a wrong type.
Invalid use of Crypt filter.
JPEG2000: Only the JPX baseline is supported.
size_t GetRefObjCount(ErrorCode id)
A content stream's named resource not defined by a resource dictionary.
A property doesn't match its custom schema type.
tintTransform is different in Separations with the same colorant name.
Document information entry 'Keywords' not synchronized with XMP.
Contains DestOutputProfileRef.
Object number not preceded by EOL marker.
Image with Interpolate key set to true.
XMP Extension schema doesn't have a description.
An annotation's 'NoView' flag is set.
An annotation AP dictionary has entries other than the N entry.
AlternatePresentations not allowed.
FileAttachment annotation is not permitted.
'pdfaProperty:name' not found.
PUA characters are missing ActualText.
CIDSet in subset font is incomplete.
Doc catalog is missing EmbeddedFiles key.
'pdfaField:name' not found.
'pdfaType:type' not found.
void SaveAs(const UString &file_path, bool linearized=false)
The font dictionary is missing 'ToUnicode' entry.
Catalog contains Requirements key.
Incompatible CIDSystemInfo entries.
The value of Length does not match the number of bytes.
Use of an invalid rendering intent.
The XMP Metadata stream is not valid.
Contains cross-reference streams (PDF 1.4 compatibility).
Each structure element dictionary in the structure hierarchy must have a Type entry with the name val...
Contains an integer value outside of the allowed range [-2^31, 2^31-1],.
A description for a property is missing in 'pdfaSchema:property' sequence.
Data after last EOF marker.
Optional content (layers) not allowed.
Embedded file Params has no ModDate entry.
Embedded font is damaged.
'pdfaExtension:property' not found.
Exceeds the maximum number (8,388,607) of indirect objects in a PDF file.
Device-specific color space used, but no GTS_PDFA1 OutputIntent.
Contains an XObject that is not supported (e.g. PostScript XObject).
A document catalog or a page dictionary contains an AA entry and its value contains key(s) not from t...
Document information entry 'Creator' not synchronized with XMP.
Document information entry 'Title' not synchronized with XMP.
Name with more than 127 bytes.
Movie annotation is not permitted.
Doc catalog is missing AF entry.
Image with invalid rendering intent.
'pdfaSchema:valueType' is using a wrong value type.
An annotation AP dictionary does not contain N entry.
Transparency used ('ca' value is not 1.0).
PDFACompliance(TRN_PDFACompliance impl)
'pdfaExtension:schemas' not found.
The PDF is not marked as Tagged PDF.
PresSteps is not allowed.
File header line not followed by % and 4 characters > 127.
Invalid hexadecimal strings used.
Generation number and 'obj' are not separated by a single white-space.
Document information entry 'ModDate' not synchronized with XMP.
static PDFACompliance::Conformance GetDeclaredConformance(const PDF::PDFDoc &in_doc)
'pdfaProperty:name' is using a wrong value type.
Image with Alternates key.
Embedded TrueType font program does not define all font glyphs.
A symbolic TrueType font must not specify encoding.
The required field namespace prefix is 'pdfaField'.
Document information entry 'Subject' not synchronized with XMP.
Unsupported HalftoneType.
Redact annotation is not permitted.
Device-specific color space, does not match OutputIntent.
PDFACompliance(bool convert, const UString &file_path, const char *password=0, Conformance conf=e_Level1B, ErrorCode *exceptions=0, int num_exceptions=0, int max_ref_objs=10, bool first_stop=false)
Embedded file has no AFRelationship.
JPEG2000: All colour channels in the JPEG2000 data must have the same bit-depth.
Page dimensions are outside of the allowed range (3-14400).
TRN_PDFACompliance mp_pdfac
The font descriptor dictionary does not include a CharSet string for Type1 font subset.
The document catalog dictionary contains AA entry.
'pdfaSchema:valueType' not found.
Invalid PDF/A conformance level.
Screen annotation is not permitted.
XMP Extension schema is not valid. Required property 'namespaceURI' might be missing in PDF/A Schema ...
Invalid PDF/A identifier namespace.
JPEG2000: Invalid number of colour channels.
Object number and generation number are not separated by a single white-space.
size_t GetRefObj(ErrorCode id, size_t err_idx)
Embedded composite (Type0) font program does not define all font glyphs.
Contains an action type that is not permitted.
Document information entry 'Producer' not synchronized with XMP.
A non-symbolic TrueType font must use WinAnsiEncoding or MacRomanEncoding.
Sound annotation is not permitted.
An annotation's 'Invisible' flag is set.
Inconsistent WMode in embedded CMap dictionary and stream.
Type 2 CIDFont without CIDToGIDMap.
'pdfaExtension:property' is using a wrong value type.
XMP not included in 'xpacket'.
Contains an invalid Transfer Curve in the extended graphics state.
Embedded Type1 font program does not define all font glyphs.
Contains the JavaScript key.
Dictionary contains more than 4095 elements.
A file specification dictionary contains a non-compliant embedded file (EF key).
JPEG2000: Invalid color space.
Transparency used (ExtGState with soft mask).
The N entry does not match the number of color components in the embedded ICC profile.
The required field namespace prefix is 'pdfaType'.
Watermark annotation is not permitted.
A stream object dictionary contains the F, FFilter, or FDecodeParms keys.
'obj' not followed by EOL marker
Some characters map to 0 or FFFE.
The font descriptor dictionary does not include a CIDSet stream for CIDFont subset.
The 'stream' token is not followed by CR and LF or a single LF.
Document information entry 'Author' not synchronized with XMP.
A symbolic TrueType font does not have exactly one entry in cmap table.
Optional content Missing Name entry.
Annotation is missing AP entry.
'endobj' not followed by EOL marker
static const char * GetPDFAErrorMessage(ErrorCode id)
Incorrect colorant specification in DeviceN.
An annotation's IC entry present and OutputIntent has non-RGB destination profile.
Invalid PDF/A amendment identifier.
PolyLine annotation is not permitted.