Hi,
Please let me know if there is a better way to do this. This PR allows OfficeShots to use WebODF for png, pdf, and round trip odf conversion of files. There is some detection on the Officeshots side that I'll also commit there. Round trip was a little hairy as I used the javascript API directly in the page to perform the document saving. I assume one could use the WebODF API from Qt as well, though the below method works for me.
Ultimately it would be good to extend things to allow which browser to use to be stipulated. But using qtjsruntime is a good start IMHO. The webodf-odf-to-exported.sh script is designed to be able to find the webodf.js file and qtjsruntime for itself and thus be directly executed from the build directory.
Hi, Please let me know if there is a better way to do this. This PR allows OfficeShots to use WebODF for png, pdf, and round trip odf conversion of files. There is some detection on the Officeshots side that I'll also commit there. Round trip was a little hairy as I used the javascript API directly in the page to perform the document saving. I assume one could use the WebODF API from Qt as well, though the below method works for me.
Ultimately it would be good to extend things to allow which browser to use to be stipulated. But using qtjsruntime is a good start IMHO. The webodf-odf-to-exported.sh script is designed to be able to find the webodf.js file and qtjsruntime for itself and thus be directly executed from the build directory.