We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdfing using Aspose.Words changes cell alignment and shouldn't

Hi,



When I save as PDF the table on the second page should have all cell’s center aligned, however, when using Aspose.Words some change to top alignment.



Firstly the code to reproduce:



Document wordDoc = new Document(“test-alignment.docx”);



wordDoc.Save(“test-alignment.pdf”, Aspose.Words.SaveFormat.Pdf);



If I open the document in Word myself and save as PDF then the result is fine. Attaching the two pdfs and two screenshots showing the issue.



Reproduces in v14.1

Hi Adam,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.


The most important thing to forget! Attached, thanks.

Hi Adam,

Thanks for sharing the document. I have tested the scenario using latest version of Aspose.Words for .NET 14.2.0 and have not found the shared issue. Please use the latest version of Aspose.Words for .NET 14.2.0. I have attached the output Pdf file with this post for your kind reference.


Hi,

I can confirm that 14.2 has resolved this issue. Thank you for your assistance.

Hi Adam,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.