diff --git a/openhtmltopdf-svg-support/src/main/java/com/openhtmltopdf/svgsupport/PDFTranscoder.java b/openhtmltopdf-svg-support/src/main/java/com/openhtmltopdf/svgsupport/PDFTranscoder.java index 45bd93130..a19c3b819 100644 --- a/openhtmltopdf-svg-support/src/main/java/com/openhtmltopdf/svgsupport/PDFTranscoder.java +++ b/openhtmltopdf-svg-support/src/main/java/com/openhtmltopdf/svgsupport/PDFTranscoder.java @@ -190,15 +190,9 @@ protected void transcode(Document svg, String uri, TranscoderOutput out) throws this.userAgent = new OpenHtmlUserAgent(this.fontResolver); super.transcode(svg, uri, out); - outputDevice.drawWithGraphics((float)x, (float)y, (float)width, (float)height, new OutputDeviceGraphicsDrawer() { + outputDevice.drawWithGraphics((float)x, (float)y, width, height, new OutputDeviceGraphicsDrawer() { @Override public void render(Graphics2D graphics2D) { - /* - * Debug rectangle, should only fill the black bordered space... - */ - graphics2D.setColor(new Color(128,255,128,128)); - graphics2D.fillRect(0,0,(int)width,(int)height); - /* * Do the real paint */