I'm building some documents which need to live online on google docs. I start off by building static html files using Ruby on Rails. These look fine.
Then I convert them to a pdf using wkhtmltopdf
. These also look fine.
Then, i convert them to .doc files using https://pdf2doc.com/
. These look mostly fine.
The problem comes when I want to get them on google docs in an editable format. If I import either the .pdf or the .doc. and choose 'convert into google doc', the formatting is completely broken. Like totally all over the place: images jumbled up next to each other etc.
I've tried a chrome extension called "Save to Google Drive", which can be called on the html version, but that looks awful as well.
One approach I haven't tried is to output all of the data used to build the docs (there are about 10 docs to build, all with an identical format but different data) into a google spreadsheet and do some kind of mail merge thing to generate the docs. But it feels like there must be a way to make either a google doc OR a google slideshow out of either html, pdf or .doc format without the format getting messed up.
Another thing i thought of was to try and build the original html files just using tables, to see if they make it through the translation process better. But again, lots of hassle.
Any advice, anyone?
EDIT - it occurred to me that maybe I need to set a particular doctype, or some meta tags, in my html? Is that likely?