Good afternoon!
When processing a Word-format document, the footers on the first and second pages of the document are not processed correctly:
Source document:
- On page 1 there are headers and footers that have the property “Special footer for the first page”
- On page 2 there are the default header and footer, which contain tables.
After processing the document with Aspose.Words for Java:
-
When you run the code to retrieve data from the header of the second page (“doc.getSections (). Get (1) .getHeadersFooters (). Get (0) .getText ()”) Aspose.Words for Java returns an empty header (" \ r “) (as if it is a footer with the property” Special footer for the first page "). If you take the data from the first page, then the footer will return from the second page (in the original document).
-
When you run the code to retrieve data from the footer of the second page (“doc.getSections (). Get (1) .getHeadersFooters (). Get (1) .getText ()”) Aspose.Words for Java returns the doubled information:
© XX «XXX-xxxxxxxxxx» XXX «XXXXXXXXX-x» PAGE * MERGEFORMAT xx / NUMPAGES * MERGEFORMAT xx © XX «XXX-xxxxxxxxxx» XXX «XXXXXXXXX-x» PAGE * MERGEFORMAT xx / NUMPAGES * MERGEFORMAT xx
Source file: Example.zip (114.4 KB)
Please consult us, what are the problems associated with and how can they be solved?