hello,
we (the freeplane project) are using batik for exporting the mindmap
canvas to SVG and PDF (with FOP).
Currently we have a mess of dependencies for batik 1.7 and FOP 1.0:
compile 'org.apache.xmlgraphics:batik-anim:1.7',
'org.apache.xmlgraphics:batik-awt-util:1.7',
'org.apache.xmlgraphics:batik-bridge:1.7',
'org.apache.xmlgraphics:batik-codec:1.7',
'org.apache.xmlgraphics:batik-css:1.7',
'org.apache.xmlgraphics:batik-dom:1.7',
'org.apache.xmlgraphics:batik-extension:1.7',
'org.apache.xmlgraphics:batik-ext:1.7',
'org.apache.xmlgraphics:batik-gui-util:1.7',
'org.apache.xmlgraphics:batik-gvt:1.7',
'org.apache.xmlgraphics:batik-parser:1.7',
'org.apache.xmlgraphics:batik-script:1.7',
'org.apache.xmlgraphics:batik-svg-dom:1.7',
'org.apache.xmlgraphics:batik-svggen:1.7',
'org.apache.xmlgraphics:batik-swing:1.7',
'org.apache.xmlgraphics:batik-transcoder:1.7',
'org.apache.xmlgraphics:batik-util:1.7',
'org.apache.xmlgraphics:batik-xml:1.7',
'org.mozilla:rhino:1.7R4', // "js.jar"/librhino-java
// cannot pull this due to broken "avalon" dependency
// (replaced by ./lib/pdf-transcoder.jar below):
//'org.apache.xmlgraphics:fop:1.1', // "fop.jar"/libfop-java
// libxml-commons-external-java 1.4.01
//WRONG: 'org.apache.xmlgraphics:xmlgraphics-commons:1.4'
'xml-apis:xml-apis:1.4.01',
'xml-apis:xml-apis-ext:1.3.04',
// need to fix javax.xml.parsers.FactoryConfigurationError:
// Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
// when starting from elipse:
'xerces:xercesImpl:2.11.0'
// from flatDir "localGitDepsRepository":
compile ':pdf-transcoder-1.0' // "fop.jar"/libfop-java
(the ':*' dependencies are jars that are under version control,
the rest is from maven)
I would like to clean this up and move to batik 1.9 and FOP 2.1. Is
there a recommended maven config for the SVG/PDF generation from Swing
use case?
I tried many things, including:
[...]
compile 'org.apache.xmlgraphics:batik-all:1.9.1',
[...]
but then I get runtime errors:
java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation
at
org.apache.fop.svg.AbstractFOPTranscoder.<init>(AbstractFOPTranscoder.java:71)
at org.apache.fop.svg.PDFTranscoder.<init>(PDFTranscoder.java:88)
(no matter what I try, I get lots of these)
Is there any example to copy from or documentation/howto to study?
Many Thanks for this great software,
Best Regards,
--
Felix Natter
debian/rules!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]