officegen icon indicating copy to clipboard operation
officegen copied to clipboard

how to set header and footer inside docx using officegen

Open raghavan117 opened this issue 3 years ago • 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

raghavan117 avatar Aug 24 '21 11:08 raghavan117

+1

usman733 avatar Mar 23 '23 06:03 usman733