so far pptx4j seems like my best option.
I don't work with java very often so what limited knowledge I have doesn't get used very often.
I've started with this example here: http://www.docx4java.org/svn/docx4j/tru ... nHtml.java
unfortunately I'm having some trouble getting it running ... it runs most of the way through but then this line:
- Code: Select all
SvgExporter.svg(presentationMLPackage, (SlidePart)p)
throws this error:
Exception in thread "main" java.lang.NullPointerException
at org.docx4j.XmlUtils.transform(XmlUtils.java:767)
at org.docx4j.XmlUtils.transform(XmlUtils.java:727)
at org.pptx4j.convert.out.svginhtml.SvgExporter.svg(SvgExporter.java:172)
at org.pptx4j.convert.out.svginhtml.SvgExporter.svg(SvgExporter.java:140)
at org.pptx4j.convert.out.svginhtml.SvgExporter.svg(SvgExporter.java:125)
at org.pptx4j.convert.out.svginhtml.SvgExporter.svg(SvgExporter.java:106)
at docx_converter.RenderAsSvgInHtml.main(RenderAsSvgInHtml.java:67)
I have a feeling I'm missing something very simple but I've yet to figure out what...
Any help would be greatly appreciated, thanks.