When converting/validating PDF Files with PDF/A-Compliance Aspose.PDF (23.3.0) does not detect several violated PDF/A rules.
Document.Convert, Document.Validate and Document.IsPdfaCompliant return true and Document.PdfFormat returns the expected format but when validating the files with veraPDF or Adobe Preflight the validation fails (as expected).
In the provided sample code the following rules are ignored:
PDF/A-1B:
ISO 19005-1:2005 6.1.12
“Maximum depth of graphics state nesting by q and Q operators is 28”
“Absolute real value must be less than or equal to 32767.0”
“Maximum length of a string (in bytes) is 65535”
PDF/A-2B:
ISO 19005-2:2011 6.1.13
“A conforming file shall not contain any string longer than 32767 bytes.”
“A conforming file shall not nest q/Q pairs by more than 28 nesting levels”
Furthermore, the PDF/A-1B rule “Maximum capacity of an array (in elements) is 8191” is not honored (and possibly others), however, I’m currently unable to provide a reproduction sample for this rule.
Sample Code (C# .NET Framework 4.8 using Aspose.PDF 23.3.0 (net4.0) using NUnit 3) and files for reproduction:
Repro.zip (625.5 KB)