Ziv-Barber/officegen

how to set header and footer inside docx using officegen

Opened this issue · 1 comments

I am using office gen( open xml) to create docx file using node js. I am facing issue where i am not able to set header and footer inside the document file.

docx.getHeader().setTextLeft()
docx.getHeader().setTextRight()

docx.getFooter().setTextLeft()
docx.getFooter().setTextRight()

But above lines of codes throws error
"get header is not a function"
"get footer is not a function"

Please help me to fix this isseu

+1