pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4248) NPE when rendering a PDF with annotations using a g2d from Batik
Date Wed, 20 Jun 2018 20:01:00 GMT

    [ 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


Mime
View raw message