Skip to content

Header and Footers

Dolan edited this page Jan 29, 2018 · 4 revisions

Creating Headers and footers is simple. Access the Header and Footer by doing so like this:

doc.Header;
doc.Footer;

You can call the same methods as you would with a 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