Solved the issue by creating the document in HTML and using the app Google Docs: Create a Document and parsed the html code in this.
@alex.newpath Thanks for all your help and suggestions to get me on the right track!
More information: