There was a problem with working with headers and footers.
Objective: determine the vertical alignment of the text in the table cell in the footer, starting from the second page of the document (as an example, the text in the 3 cell of the footer)
Problem: the cell indicates that the text is centered, but ASPOSE.WORDS for JAVA returns VerticalAlignment = “TOP” (see VERTICAL_ALIGNMENT_INCORRECT.jpg).
Question: what can this problem be connected with?
Objective: to determine the correctness of the number of the current page indicated in the 3rd cell of the footer, starting from the second page of the document
- When checking the file (the file itself should not be modified using ASPOSE.WORDS for JAVA), the MERGEFORMAT field appears and the total number of pages is always returned as the current page number (for all pages in the document) (see DOC_WITH_MERGEFORMAT.jpg )
- If you change (re-save the document) using ASPOSE.WORDS for JAVA, then the MERGEFORMAT field disappears and the current page number is returned correctly (see DOC_WITHOUT_MERGEFORMAT).
Question: how to get around the problem with the MERGEFORMAT field without changing the source file itself?
Source document: EXAMPLE_DOC.docx
Please help with the solution of these problems. All documents are attached in the archive Example_files.zip (138.0 KB)