Description:
We are facing a formatting issue during DOCX to PDF conversion using Aspose.Words.
When generating documents in DOCX format, the output appears as expected with correct column and page breaks. However, when the same DOCX file is converted to PDF format, column breaks are not rendered correctly — leading to misplaced or merged content across columns/pages.
Expected Behavior:
Column and page breaks in the DOCX should be preserved exactly in the converted PDF output.
Actual Behavior:
Column breaks are either ignored or incorrectly rendered in the PDF output.
Verification Performed:
Verified by converting the DOCX using Aspose’s online portal, where the same issue was reproduced.
Confirmed that the issue occurs specifically during Aspose’s PDF conversion, not during DOCX generation.
Request:
Please investigate this issue and confirm if it is a known limitation or a potential bug in the PDF rendering process. Any workaround or fix recommendation would be appreciated.
It appears you are encountering issues with column breaks not being preserved during the conversion of a DOCX file to PDF using Aspose.Words. This can occur due to the way the PDF rendering engine interprets the layout of the DOCX document.
Workaround Suggestions:
Update Aspose.Words: Ensure you are using the latest version of Aspose.Words, as updates often include bug fixes and improvements related to document rendering.
Adjust Document Layout: Modifying the layout settings in your DOCX file may help. For example, check the column settings and ensure there are no overlapping elements in the document.
Use Alternative Conversion Methods: If the issue persists, consider converting the DOCX to HTML first and then from HTML to PDF. This approach can sometimes yield better results for complex layouts.
Here’s a minimal code snippet to illustrate this approach:
// Load the DOCX file
Document doc = new Document("input.docx");
// Save as HTML
doc.Save("output.html", SaveFormat.Html);
// Load the HTML file and convert to PDF
Document htmlDoc = new Document("output.html");
htmlDoc.Save("output.pdf", SaveFormat.Pdf);
Contact Support: If none of the above solutions resolve the issue, consider reaching out to Aspose support with your specific document and details of the problem. They may provide a more tailored solution or confirm if it’s a bug that needs addressing.
Feel free to reach out if you need further assistance!
@sfulari
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-28777
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@sfulari The issue has been postponed and is not yet scheduled for development. Please accept our apologies for your inconvenience. We will keep you updated and let you know once the issue is resolved or we have more information for you.
We are facing an issue with one of our Word templates during Word-to-PDF conversion using Aspose.
In the Word document, the heading on page 2 appears correctly on the right-hand side.
However, after converting the document to PDF, the same heading is shifted to the left-hand side.
The layout and alignment are not being preserved correctly in the converted PDF output.
These issues are very important for us as they directly impact the formatting and accuracy of our final documents.
Kindly look into this on priority and suggest how we can resolve these alignment inconsistencies.
@sfulari
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-28818
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The problem occurs because text is moved right using tabs and whitespaces. If you can modify your document, you can easily fix the problem by using text alignment to move the text right.