I am using aspose.words-java to add header footer on word documents and then convert them to PDF. Issue I was facing initially was that the shapes and images were overlapping with the footer. I increased the bottom margin of the page which resolved the issue for most documents. But some shapes are still overlapping with footer and I can’t figure out why.
DocumentBuilder builderA = new DocumentBuilder(docA);
I’ve attached 2 images of generated documents’ pages- 1 which is generating fine and 2nd one with the overlapping issue.
Please assist how can I fix this.
@NomanAslamKhan Could you please attach your input and output documents here for testing? We will check the issue and provide you more information. Unfortunately, it is difficult to say what the problem is without real documents using screenshots.
@alexey.noskov I apologize for a very late response, I’ve attached both the docx file and the generated pdf. Please let me know how can I resolve this.
999017 (1).docx (174.1 KB)
999017 (1).pdf (129.7 KB)
@NomanAslamKhan Thank you for additional information. I have checked conversion your document to PDF and cannot observe aby issues. The document is converted to PDF the same way as MS Word does. As I can see in your output PDF document there is a header, which is not present in the source DOCX document. Do you add it programmatically? If so, could you please provide full code that will allow us to reproduce the problem. Also, please note, that MS Word documents are flow documents by their nature, so editing the document affects the following document content layout. So the problem might occur because content added before conversion breaks the document layout.