You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2013/08/27 16:09:52 UTC

[jira] [Updated] (PDFBOX-1707) Add dispose() when done with graphics

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

Tilman Hausherr updated PDFBOX-1707:
------------------------------------

    Description: 
Please add dispose() in
pdfbox\filter\JBIG2Filter.java
pdfbox\pdmodel\graphics\xobject\PDXObjectImage.java
as recommended by javadoc. Patches are attached.

I've also added @override at some places. The problem is that not having it brings an additional yellow bar in netbeans at the right. Which prevents seeing the more important bars.

  was:
Please add dispose() in
pdfbox\filter\JBIG2Filter.java
pdfbox\pdmodel\graphics\xobject\PDXObjectImage.java
as recommended by javadoc. Patches are attached.

                Graphics graphics = packedImage.getGraphics();
                graphics.drawImage(bi, 0, 0, null);
                graphics.dispose();

I've also added @override at some places. The problem is that not having it brings an additional yellow bar in netbeans at the right. Which prevents seeing the more important bars.

    
> Add dispose() when done with graphics
> -------------------------------------
>
>                 Key: PDFBOX-1707
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1707
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 1.8.3, 2.0.0
>            Reporter: Tilman Hausherr
>            Priority: Minor
>         Attachments: JBIG2Filter.patch, PDXObjectImage.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Please add dispose() in
> pdfbox\filter\JBIG2Filter.java
> pdfbox\pdmodel\graphics\xobject\PDXObjectImage.java
> as recommended by javadoc. Patches are attached.
> I've also added @override at some places. The problem is that not having it brings an additional yellow bar in netbeans at the right. Which prevents seeing the more important bars.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira