You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/06/20 20:01:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16518542#comment-16518542 ] 

ASF subversion and git services commented on PDFBOX-4248:
---------------------------------------------------------

Commit 1833946 from tilman@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1833946 ]

PDFBOX-4248: avoid NPE which can happen with a Batik graphics object

> 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