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 2018/06/20 20:06:00 UTC

[jira] [Resolved] (PDFBOX-4248) NPE when rendering a PDF with annotations using a g2d from Batik

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

Tilman Hausherr resolved PDFBOX-4248.
-------------------------------------
    Resolution: Fixed

> NPE when rendering a PDF with annotations using a g2d from Batik
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-4248
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4248
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.9, 2.0.10
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.11, 3.0.0 PDFBox
>
>
> When using PDFBox to draw a PDF into a Batik SVG g2d, there is an NPE in PageDrawer.java at this line
> {code:java}
> int deviceType = graphics.getDeviceConfiguration().getDevice().getType();
> {code}
> Apache Batik has this code in SVGGraphics2D:
> {code:java}
>     /**
>      * Returns the device configuration associated with this
>      * <code>Graphics2D</code>.
>      */
>     public GraphicsConfiguration getDeviceConfiguration(){
>         // TO BE DONE.
>         return null;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org