[
https://issues.apache.org/jira/browse/PDFBOX-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Isto Nikula updated PDFBOX-3233:
--------------------------------
Description:
NOTE: actual version is 2.0.0-RC3
In PDAcroForm#getDefaultResources existing resources are created like this:
COSDictionary dr = (COSDictionary)
dictionary.getDictionaryObject(COSName.DR);
if (dr != null)
{
retval = new PDResources(dr);
}
PDResources supports resource cache but default resources is always created
without one.
was:
NOTE: actual version is 2.0.0-RC3
In PDAcroForm#getDefaultResources existing resources are ignored:
COSDictionary dr = (COSDictionary)
dictionary.getDictionaryObject(COSName.DR);
if (dr != null)
{
retval = new PDResources(dr);
}
The class also contains setDefaultResources which does not really have any
effect due to the above.
Issue Type: Wish (was: Bug)
Summary: Create default resources with cache (was: Question:
PDAcroForm#getDefaultResources ignores existing COSName.DR, is this
intentional?)
> Create default resources with cache
> -----------------------------------
>
> Key: PDFBOX-3233
> URL: https://issues.apache.org/jira/browse/PDFBOX-3233
> Project: PDFBox
> Issue Type: Wish
> Components: AcroForm
> Reporter: Isto Nikula
> Priority: Minor
> Labels: newbie
>
> NOTE: actual version is 2.0.0-RC3
> In PDAcroForm#getDefaultResources existing resources are created like this:
> COSDictionary dr = (COSDictionary)
> dictionary.getDictionaryObject(COSName.DR);
> if (dr != null)
> {
> retval = new PDResources(dr);
> }
> PDResources supports resource cache but default resources is always created
> without one.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]