webodf / WebODF

WebODF - JavaScript Document Engine
http://webodf.org/
792 stars 167 forks source link

A small script to help OfficeShots.org use WebODF for rendering. #911

Closed monkeyiq closed 9 years ago

monkeyiq commented 9 years ago

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.

kogmbh-ci commented 9 years ago

Can one of the admins verify this patch?

monkeyiq commented 9 years ago

This might be better placed in the OfficeShots repo?

vandenoever commented 9 years ago

I agree.

monkeyiq commented 9 years ago

ok, I've merged this into the main OfficeShots repo for now.