0
votes

Google Spreadsheets have their own API to add rows, modify cells, etc. How can I create a Google Document via an API to add text, bold, tables, etc. like a Word document?

https://developers.google.com/google-apps/spreadsheets/

In their list of apps API, documents are not even mentioned:

https://developers.google.com/google-apps/app-apis

Even the Drive API doesn't mention creating/formatting a word processing document specifically:

https://developers.google.com/drive/v2/reference/

There is the Google Docs API, but it's deprecated and doesn't mention formatting a Doc, only converting an existing Microsoft or text document:

https://developers.google.com/google-apps/documents-list/

1
@voscausa Does Google have one for Docs like Spreadsheets? I'm leaning towards creating a PDF in memory and uploading to Drive.Chloe
No. But for generating PDF's have a look at this article: blog.notdot.net/2010/04/…voscausa
@voscausa Thanks, but I need something for Java.Chloe
Google recently launched an API for Google Docs developers.google.com/docs/apiRubén

1 Answers

0
votes

It has an api but its only available from apps script. Look at DocumentApp. You can then publish a service that does the work.