Hi,
We are trying to update the header and footer of a document(UM.doc) in portrait from other document(891375_input.docx) which is in landscape mode. The header and footer in landscape mode is applied to the portrait mode. How do we shrink the header and footer to fit in Portrait mode.
Here is the code snippet .
Document FP, Document UM;
UM.getFirstSection().getPageSetup().setSectionStart(SectionStart.NEW_PAGE);
// Restart the page numbering for the document to be appended.
UM.getFirstSection().getPageSetup().setDifferentFirstPageHeaderFooter(false);
UM.getFirstSection().getHeadersFooters().linkToPrevious(true);
FP.appendDocument(UM, ImportFormatMode.KEEP_SOURCE_FORMATTING);
891375_MR.docx is the result from the above code.
We tried the api’s provided in the below link https://docs.aspose.com/words/java/working-with-headers-and-footers/
But it doesn’t seem to work for our problem.
Thanks