You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Johan van der Knijff (JIRA)" <ji...@apache.org> on 2013/10/24 15:13:02 UTC

[jira] [Updated] (PDFBOX-1758) Preflight doesn't report Filespec dictionary that refers (indirectly) to an EmbeddedFile entry in some cases

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

Johan van der Knijff updated PDFBOX-1758:
-----------------------------------------

    Description: 

File:

[http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf](http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf)

This document contains a Filespec dictionary that refers (indirectly) to an EmbeddedFile entry:

    
    1219 0 obj
    << 
    /Type /Filespec 
    /F (index.pdx)
    >> 
    endobj

Refers to:

    1231 0 obj
    << 
    /F (index.pdx)
    /Type /F 
    /EF << /F 1232 0 R >> 
    >> 
    endobj

Which refers to:

    1232 0 obj
    << /Filter [ /FlateDecode ] /Length 497 /Type /EmbeddedFile
    /Params << /CheckSum <5086e4cbb19fe27f3c0a9a1ba731ffb6>/Size 908 
    /CreationDate (D:20030115022333)
    /ModDate (D:20010910104344)>> >> 
    stream
    ...
    endstream
    endobj

Because of this I would expect error 1.2.9 (Body Syntax error, EmbeddedFile entry is present in a FileSpecification dictionary) here, but this is not reported by Preflight.

  was:
<p>File:</p>
<p><a href="http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf">http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf</a></p>
<p>This document contains a Filespec dictionary that refers (indirectly) to an EmbeddedFile entry:</p>
<pre><code>1219 0 obj
&lt;&lt; 
/Type /Filespec 
/F (index.pdx)
&gt;&gt; 
endobj
</code></pre>

<p>Refers to:</p>
<pre><code>1231 0 obj
&lt;&lt; 
/F (index.pdx)
/Type /F 
/EF &lt;&lt; /F 1232 0 R &gt;&gt; 
&gt;&gt; 
endobj
</code></pre>

<p>Which refers to:</p>
<pre><code>1232 0 obj
&lt;&lt; /Filter [ /FlateDecode ] /Length 497 /Type /EmbeddedFile
/Params &lt;&lt; /CheckSum &lt;5086e4cbb19fe27f3c0a9a1ba731ffb6&gt;/Size 908 
/CreationDate (D:20030115022333)
/ModDate (D:20010910104344)&gt;&gt; &gt;&gt; 
stream
...
endstream
endobj
</code></pre>

<p>Because of this I would expect error 1.2.9 (Body Syntax error, EmbeddedFile entry is present in a FileSpecification dictionary) here, but this is not reported by Preflight.</p>



> Preflight doesn't report Filespec dictionary that refers (indirectly) to an EmbeddedFile entry in some cases
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1758
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1758
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: Win 7
>            Reporter: Johan van der Knijff
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> File:
> [http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf](http://acroeng.adobe.com/Test_Files/file_attachments//non_PDF_ACRO___FileAttachment.pdf)
> This document contains a Filespec dictionary that refers (indirectly) to an EmbeddedFile entry:
>     
>     1219 0 obj
>     << 
>     /Type /Filespec 
>     /F (index.pdx)
>     >> 
>     endobj
> Refers to:
>     1231 0 obj
>     << 
>     /F (index.pdx)
>     /Type /F 
>     /EF << /F 1232 0 R >> 
>     >> 
>     endobj
> Which refers to:
>     1232 0 obj
>     << /Filter [ /FlateDecode ] /Length 497 /Type /EmbeddedFile
>     /Params << /CheckSum <5086e4cbb19fe27f3c0a9a1ba731ffb6>/Size 908 
>     /CreationDate (D:20030115022333)
>     /ModDate (D:20010910104344)>> >> 
>     stream
>     ...
>     endstream
>     endobj
> Because of this I would expect error 1.2.9 (Body Syntax error, EmbeddedFile entry is present in a FileSpecification dictionary) here, but this is not reported by Preflight.



--
This message was sent by Atlassian JIRA
(v6.1#6144)