Page 1 of 1

How to convert pptx file to svg or PDF

PostPosted: Fri Nov 12, 2010 9:48 pm
by jiggy360
Hi,

Im having problems converting pptx to pdf or svg, the example of pptx to svg wont work, is there any other way to do it or any other example?

Thanks in Adv,
Jiggy

Re: How to convert pptx file to svg or PDF

PostPosted: Sat Nov 13, 2010 10:35 am
by jason
When you say it "won't work", what exactly, do you mean?

Re: How to convert pptx file to svg or PDF

PostPosted: Mon Nov 15, 2010 5:31 pm
by jiggy360
Hi Jason,

Sorry, its working problem was with jar file, i downloaded the new nightly updated jar file and its working fine.... :)
Thanks!!!

Re: How to convert pptx file to svg or PDF

PostPosted: Fri Nov 26, 2010 8:46 pm
by jiggy360
Hi Jason,

Im able to convert pptx to svg using your RenderAsSvgInHTML, but i dont want it in HTML, i want pure svg file of pptx slide. How to do that plz help.

Re: How to convert pptx file to svg or PDF

PostPosted: Fri Nov 26, 2010 11:16 pm
by jason
You'll have to modify the source code, starting with the XSLT src/pptx4j/java/org/pptx4j/convert/out/svginhtml/pptx2svginhtml.xslt

As I note there, textArea (SVG 1.2 Tiny) - doesn't work in Chrome 4.0.249.64 or FF 3.5.7 so its not a feasible solution for handling text boxes on slides (this as at January 2010).

That's why I used absolutely positioned divs for the text boxes, which means mixed svg and html; either svg in html, or html foreignObject in svg.

If you are targeting a particular SVG client, this might not concern you. Also, its possible that clients in general have moved on sufficiently in the last 12 months: you might post your findings here.

hope this helps ... Jason