[
https://issues.apache.org/jira/browse/PDFBOX-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Petras updated PDFBOX-1314:
---------------------------
Description: 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 - all PDF dictionary objects, if they
do not have COSBase#direct property set or are not specifically treated by
COSWriter (like XObject or Resources) are written indirectly. 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). (was: 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 - all
PDF dictionary objects, if they do not have COSBase#direct property set or are
not specifically treated by COSWriter (like XObject or Resources) are written
indirectly. 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" (see ISO
32000-1: 7.12 Extensions Dictionary).)
> PDFParser should set to COSBase if this object is direct on indirect
> --------------------------------------------------------------------
>
> Key: PDFBOX-1314
> URL: https://issues.apache.org/jira/browse/PDFBOX-1314
> Project: PDFBox
> Issue Type: Bug
> 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 - all PDF dictionary objects, if they do not have
> COSBase#direct property set or are not specifically treated by COSWriter
> (like XObject or Resources) are written indirectly. 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