final GraphicOutputContext outputContext,
final FontConsumer fontConsumer, final boolean strokeText,
final boolean commentsEnabled) throws GraphicException {
SVGDocument doc = null;
doc = this.svg.getSvgDocument();
final PDFGraphics2D graphics = getPDFContent4SVG(fontConsumer, doc,
strokeText, outputContext, output);
if (graphics == null) {
throw new GraphicException("Unable to convert to PDF: "
+ this.svg.getUrl().toExternalForm());
}
graphics.dispose();
if (graphics.ioErrorFound()) {
throw new GraphicException("I/O error(s) while converting to PDF: "
+ this.svg.getUrl().toExternalForm());
}
}