You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Eric Leleu (JIRA)" <ji...@apache.org> on 2012/06/18 21:09:43 UTC

[jira] [Updated] (PDFBOX-1312) Refactor the PdfA parser

     [ https://issues.apache.org/jira/browse/PDFBOX-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu updated PDFBOX-1312:
-------------------------------

    Attachment: patch-PDFBOX-1312.txt.gz

Hi,

In attachment you can find a patch that contains the first version of the new preflight implementation. (patch-PDFBOX-1312.txt.gz)

This new implementation and all underlying classes are in the "org.apache.pdfbox.preflight" package. 

This implementation succeed Isartor Test Suite.

Here is the new way to validate a document :

PreflightParser parser = new PreflightParser(new FileDataSource(target));
parser.parse();

PreflightDocument document = (PreflightDocument) parser.getPDDocument();
document.validateDocument();
  		
Assert.assertTrue(document.getResult().isValid());


If you encounter some issue with this new version, please update this thread.

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