You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Petras (JIRA)" <ji...@apache.org> on 2012/05/25 15:22:24 UTC

[jira] [Updated] (PDFBOX-1314) PDFParser should set "direct" property in COSBase if this object is direct

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

Petras updated PDFBOX-1314:
---------------------------

    Summary: PDFParser should set "direct" property in COSBase if this object is direct  (was: PDFParser should set to COSBase if this object is direct on indirect)
    
> PDFParser should set "direct" property in COSBase if this object is direct
> --------------------------------------------------------------------------
>
>                 Key: PDFBOX-1314
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1314
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.6.0
>            Reporter: Petras
>              Labels: COSWriter, PDFParser
>
> PDFParser during PDF parsing does not update COSBase#direct property - it always return false when read. Especially this issue manifests for dictionary objects when PDF is saved (either regularly or incrementally) - all dictionary objects in saved PDF, if they do not have COSBase#direct property set or are not specifically treated by COSWriter (like XObject or Resources) are written as indirect objects. Though PDF specification allows dictionary objects to be indirect, but not for /Extensions dictionary in document catalog: "The extensions dictionary, all developer extensions dictionary entries in the extensions dictionary, as well as their entries, all shall be direct objects (i.e., this information shall be nested directly within the catalog dictionary with no indirect objects used)." (see ISO 32000-1: 7.12 Extensions Dictionary).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira