A jquery plugin that allows an html page to be converted and/or downloaded into a Microsoft Word Document with an emphasis on performance
Googose allows you to turn any html content page into a properly formatted Microsoft Word (.doc) file.
This is pretty close two as fully-fledged as it's going to be. Right now I'm just hardening it and working on bug fixes.
As you can see, you are required to include jquery in your page before googose
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/aadel112/googoose@master/jquery.googoose.js"></script>
I see no reason that jquery 1.5 or earlier wouldn't be supported, but I haven't tested this.
The simplest usage will just call googose on page load.
<script type="text/javascript">
$(document).ready(function() {
var o = {
filename: 'test.doc'
};
$(document).googoose(o);
});
</script>
The content that is rendered to a Word doc will need to be wrapped in a div with the classname googoose-wrapper, by default.
<div class="googoose-wrapper"></div>
I've abandoned trying to make canvases and SVGs work for now. The developer can make this work by saving the canvas and SVG elements before invoking googoose on the server and then setting the source of the image to be the URL of the save to canvas, referencing the server URL.
I'm currently only working on bug fixes, and making sure the in implmentation is working.
A perfectly good full example can be found here in this WordPress plugin which hooks googoose functionality to the tinymce editor. You can visit my blog. I plan on putting more content regarding googoose on there. You can contribute by donating. Even $5 would be greatly appreciated.
It's been a long time since I've looked at this project. I made it for a specific period in time in my life when it was needed, but I've been encouraged by the use it seems to have gotten, and I believe I even got a donation from it, and I have set it as a goal to try to maintain this project at least once a week. As always, though, contributors are more than welcome.