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

Davide Silvestri updated PDFBOX-3256:
-------------------------------------
    Summary:  Trailer Validation error PDF/A1-b  (was:  Trailer Validation 
error)

>  Trailer Validation error PDF/A1-b
> ----------------------------------
>
>                 Key: PDFBOX-3256
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3256
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>            Reporter: Davide Silvestri
>
> According to PDF specifications "File identifiers are defined by the optional 
> ID entry in a PDF file’s trailer dictionary (see Section 3.4.4, “File 
> Trailer”; see also implementation note 162 in Appendix H). The value of this 
> entry is an array of two byte strings. The first byte string is a permanent 
> identifier based on the contents of the file at the time it was originally 
> created and does not change when the file is incrementally updated. The 
> second byte string is a changing identifier based on the file’s contents at 
> the time it was last updated." 
> We are having a problem validating a PDF/A1-b when preflight checks first and 
> last trailer. TrailerValidationProcess.java compares IDs in the compareIds 
> function checking that both values remain the same in the first and last 
> trailer, not only the first byte. It checks both the first byte AND the 
> second byte into the cycle (line 206). Being the second byte a changing item 
> when the file is updated (eg. with a digital signature), we have this error 
> in validation "1.4.6.: Trailer Syntax error, ID is different in the first and 
> the last trailer" even if the first item remains the same and so the PDF/A1-b 
> compliance should be verified.
> Please can you help me with this issue?
> Thank you very much.
> Davide



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to