You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Isto Nikula (JIRA)" <ji...@apache.org> on 2016/02/16 07:50:18 UTC

[jira] [Updated] (PDFBOX-3233) Create default resources with cache

     [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org