Tilman Hausherr created PDFBOX-4248:
---------------------------------------

             Summary: 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
             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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to