Append formatted text to Google Doc

When appending text to a google doc is there a way to do the following:

  1. Make some of the text formatted (bold specifically)
  2. Start a new page

Thanks!

Welcome to the Make community!

It’s possible with the Docs API, but not pretty. See How to bold text in a google doc using the google docs api - Stack Overflow

You might have to use many modules to do the same as what was mentioned in the link above, just to bold a single range of text.

Instead I suggest using the “Create a new document” module and insert the content as HTML, with the relevant bold text between the <b></b> tags.

Similarly, Insert page breaks in Google Docs with App script - Stack Overflow

You might have to use many modules to do the same as what was mentioned in the link above, just to insert a page break.

This is because you need to search for the index of the position where you want to insert/modify the document.

2 Likes