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:01 UTC

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

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

             Summary: 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


<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>




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