我正在尝试使用Batik库将BufferedImage绘制到SVG文件中。我有非常相似的代码,适用于EPS/PS文件,但出于某种原因,以下代码://GetaDOMImplementationandcreateanXMLdocumentDOMImplementationdomImpl=GenericDOMImplementation.getDOMImplementation();Documentdocument=domImpl.createDocument(null,"svg",null);//CreateaninstanceoftheSVGGeneratorSVGGraphics2Ds