Google Apps Script Header/Footer Clear and Replace
问题 I have a script that updates Google Docs' header and footer (by retrieving parameters from the AODocs add-on) when a new document version is published. My problem is that the footer.clear() method doesn't seem to erase the header (or footer) and leaves a carriage return at the top of the section. Subsequent versions keep "growing" in the footer space. Is this a known issue? Am I doing it wrong? (I pull in a line from a template so that I can have pagination, too. Here's a code-snippet for the