I need to edit the look of the styles in Google docs. I'm using script to insert text into a blank document. Before I insert the text I define the look of new styles like this:
var vedlegget = {};
vedlegget[DocumentApp.Attribute.FONT_SIZE] = 10;
vedlegget[DocumentApp.Attribute.BOLD] = false;
vedlegget[DocumentApp.Attribute.ITALIC] = true;
vedlegget[DocumentApp.Attribute.SPACING_AFTER] =7;
vedlegget[DocumentApp.Attribute.LINE_SPACING]=1;
vedlegget[DocumentApp.Attribute.FOREGROUND_COLOR] = '#007cb0';
But I also need to use the built-in-styles like Normal and Headings. I need to make a Table of Contents etc.
How do I define the look of the style HEADING1?
I insert the Heading 1 text like shown here: https://developers.google.com/apps-script/reference/document/paragraph-heading
But I cannot find any way of editing the style.