[ 
https://issues.apache.org/jira/browse/PDFBOX-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15174029#comment-15174029
 ] 

Tilman Hausherr edited comment on PDFBOX-3256 at 3/2/16 7:37 AM:
-----------------------------------------------------------------

Please attach the PDF and read PDFBOX-2502, the comment of Nov. 19, 2014. Is 
your file linearized? (Open it with NOTEPAD++ and search for /Linearized)


was (Author: tilman):
Please attach the PDF and read PDFBOX-2502, the comment of Nov. 19, 2014. Is 
your file linearized?

>  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, but it checks both the first byte AND the second byte of the trailer 
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to