Get Google Document as HTML

后端 未结 8 1981
无人及你
无人及你 2020-11-27 17:28

I had a wild idea that I could build a website blog for an unsophisticated user friend using Google Drive Documents to back it. I was able to create a contentService that c

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 18:04

    There is no direct method in GAS to get an HTML version of a doc and this is quite an old enhancement request but the workaround described originally by Henrique Abreu works pretty well, I use it all the time...

    The only annoying thing in the authorization process that needs to be called from the script editor which makes it uneasy to use in a shared application (with "script unable" users) but this only happens once ;).

    There is also a Library created by Romain Vialard that makes things (a bit) easier... and adds a few other interesting functions.

提交回复
热议问题