Checking if PDF is PDF / A 1 format or not using PDFBOX in java
1 answer
The document from pdfbox shows how to perform PDF / A-1b validation:
https://pdfbox.apache.org/cookbook/pdfavalidation.html
to do pdf / a-1a validation, you simply change:
parser.parse();
in
parser.parse(Format.PDF_A1A);
I was able to verify this by reading the parser source code located here:
+1
source to share