[
https://issues.apache.org/jira/browse/PDFBOX-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403823#comment-13403823
]
Eric Leleu commented on PDFBOX-1312:
------------------------------------
Hi,
I have just committed the previous patch with some minor changes. One of this
change is the renaming of the validateDocument() method of the
PreflightDocument to validate().
PreflightParser parser = new PreflightParser(new FileDataSource(target));
parser.parse();
PreflightDocument document = (PreflightDocument) parser.getPDDocument();
document.validate();
Assert.assertTrue(document.getResult().isValid());
Some work still have to be done, the most important is the refactor the way to
validate Font requirements.
BR,
Eric
> Refactor the PdfA parser
> ------------------------
>
> Key: PDFBOX-1312
> URL: https://issues.apache.org/jira/browse/PDFBOX-1312
> Project: PDFBox
> Issue Type: Improvement
> Components: Preflight
> Affects Versions: 1.7.0
> Reporter: Eric Leleu
> Assignee: Eric Leleu
> Fix For: 1.8.0
>
> Attachments: patch-PDFBOX-1312.txt.gz
>
>
> To fix the PDFBox-1274 issue, the validation of PDF/A needs a refactoring.
> Currently, each XRef entry is checked independently.
> Most of the time, this is enough because the required information to validate
> the object are present in the object.
> For the issue PDFBox-1274, the object validation should access to the page
> that uses the object.
> After the refactoring the valdiation unit will be the PDPage.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira