Google Apps Script targeting header on doc with different first page headers
问题 I have a simple little apps script that refreshes our dynamic logo on request. The problem is I can't target the header if the designer checks "Different first page header/footer" checkbox. Is there away to target the different header if it's checked? Here is the code I'm currently using: function onOpen() { DocumentApp.getUi().createMenu('Branding') .addItem('Update Branding', 'updateLogo') .addToUi(); } function updateLogo() { var doc = DocumentApp.getActiveDocument(); var header = doc