Is it possible to use the importHeadersAndFooters method but just for the first page. I know the header method allows this but I need an image across the comple top of the page and am unable to get the header method to do this.
Is it possible to use the importHeadersAndFooters method but just for the first page. I know the header method allows this but I need an image across the comple top of the page and am unable to get the header method to do this.
Hello,
There's no method to import only the header for the first header.
One approach would be generating the first page of the DOCX standalone (this is a document) importing the header to this documebt, generate the other content in other DOCX and then merge both using the method mergeDocx.
Or you could use a template created with Word that include the header only in the first page.
Regards.
Thanks for the reply, I have changed the template so the header is set to first page only but the resulting docx and pdf do not show the header image at all.
Any ideas?
Hello,
We have done some quick tests and everything is working fine. We have created a DOCX template with a header in the first page, and after adding content the header remains in the DOCX and in the PDF if we transform the document using the conversion plugin.
Please check you're not removing the header by mistake or using a wrong template.
Regards.
I have the template docx file with an image full width in the header section and have made sure the different first page box is ticked. I have just checked the exported docx which shows no header along with the pdf.
But if i go to the header settings in the created document and tick the different first page box the image then appears on the first page. It seems that it doesnt keep the settings checked when it creates the word document. Any suggesations why this may be?