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

Maruan Sahyoun commented on PDFBOX-2502:
----------------------------------------

The original PDF/A spec had the following 

{quote}
In a linearized file the ID keyword shall be present in both the first page 
trailer and the last trailer dictionaries and the value of both instances of 
the keyword shall be identical.
{quote}

which was changed to 

{quote}
In a linearized PDF, if the ID keyword is present in both the first page 
trailer dictionary and the last
trailer dictionary, the value to both instances of the ID keyword shall be 
identical.
{quote}

in the 2nd Technical Corrigendum.

So for this file, as the last trailer dictionary doesn’t contain an ID entry, a 
comparison is not necessary.


> false negative? 1.4.6 : Trailer Syntax error, ID is different in the first 
> and the last trailer
> -----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2502
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2502
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: java7 deb7
>            Reporter: Ralf Hauser
>             Fix For: 2.0.0
>
>         Attachments: 038R.pdf
>
>
> at 
> org.apache.pdfbox.preflight.process.TrailerValidationProcess.checkTrailersForLinearizedPDF14(TrailerValidationProcess.java:111)
>       at 
> org.apache.pdfbox.preflight.process.TrailerValidationProcess.validate(TrailerValidationProcess.java:77)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
>       at 
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)



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

Reply via email to