Table Alignment issues in PDF

Hi,

We are facing issue in the alignment of the table in the generated PDF using ASPOSE. Word

when we try to remove the empty columns in the table through java ASPOSE its working fine when we generate as a word.the table width is adjusted to the width of the word document.

but when we generate in PDF format the table width is not adjsuted to thePDF width.

Please find the attachment where i have given the screen shorts narrating the issue.

It would be help full if any solution.

Thanks & Regards,
Dinesh

Hi Dinesh,

Thanks for your inquiry. I have converted your “PDF alignment issue.docx” to PDF using Aspose.Words 16.6.0 and attached it here for your reference. The PDF output looks fine to me.

In case 16.6.0 version does not help you, please attach the following resources here for testing:

  • Your input Word document
  • Aspose.Words version 16.6.0 generated output document which shows the undesired behavior
  • Your expected DOCX and PDF documents. We will investigate the structure of your expected documents as to how you want your final output be generated like. You can create expected document using Microsoft Word.
  • Please create a standalone Java application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click ‘Reply’ button that will bring you to the ‘reply page’ and there at the bottom you can include any attachments with that post by clicking the ‘Add/Update’ button.

Best regards,

Hi,
I have upgraded the ASPOSE JAR from aspose-words-15.7.0-jdk16.JAR to Aspose-words-16.6.0-jdk16.JAR. After upgrading I have noticed alignment issues. I have user comments enabled in the document. So when the document is generated the table width is extended to the comments section which is not generated as per template…
PFA the sample

Hi Dinesh,

Thanks for your inquiry. Please attach your actual input Word document and actual output Pdf file showing the undesired behavior here for testing. We will investigate the issue on our end and provide you more information.

Best regards,