The function I provided above works fine, we just need to forced the script to save the changes by calling the saveAndClose() method before calling the function that converts the doc into PDF.
More Related Contents:
- Convert Google Doc to PDF using Google Script Editior
- How to poll a Google Doc from an add-on
- Creating anchored comments programmatically in Google Docs
- How to define global variable in Google Apps Script
- How to use a field of struct or variable value as template name?
- What is the correct way to represent template classes with UML?
- How to download single sheet as PDF to my local device directly (not export to Google Drive)?
- How to set dynamic values with Kubernetes yaml file
- Convert all sheets to PDF with Google Apps Script
- How to convert a Google Docs-File to an Excel-File (XLSX)
- Get pdf-attachments from Gmail as text
- How to get a list of current variables from Jinja 2 template?
- How to merge the two cells of a table in a Google text Document without this weird result?
- How do I communicate a page(modal dialog) with its sibling (sidebar)?
- What’s the advantage of Logic-less template (such as mustache)?
- Upload an image to s document
- Get All Links in a Document
- Can a Jinja variable’s scope extend beyond in an inner block?
- Can no longer produce PDF from Google Sheets spreadsheet for some of the users
- Can I color certain words in Google Document using Google Apps Script?
- How to stop redirected URL from being masked?
- Golang templates (and passing funcs to template)
- Combining Assetic Resources across inherited templates
- differences between for-each and templates in xsl?
- How do I get Google search results from urlfetch in google apps script
- Editing method comment template in Netbeans 6.9.1
- inject external javascript file in google app script(Google Docs) [closed]
- How to get a map or list of template ‘actions’ from a parsed template?
- Golang template engine pipelines
- How to copy content and formatting between Google Docs?