Creating Headers and footers is simple. Access the Header and Footer by doing so like this:
Header
Footer
doc.Header; doc.Footer;
You can call the same methods as you would with a File:
File
doc.Header.createParagraph("Header text"); doc.Footer.createParagraph("Footer text");
Even add images:
doc.Header.createImage([PATH_TO_YOUR_IMAGE]); doc.Footer.createImage([PATH_TO_YOUR_IMAGE]);
Refer to demo8.js for more information
demo8.js
There was an error while loading. Please reload this page.