Weird PDF Rendering from Word File

Hello.

I have a word file that needs to be converted to a PDF. When it is ran though the Aspose.Words product (.net version), the final result doesn’t look like the original. I have tried using the latest version of Aspose.Words as well (18.2 I believe) with no resolution.

Of course, when I use Microsoft Word to create a PDF, the result looks identical to what the file looks like.

Any idea on how to get this to render correctly?

Here is a sample of the word file.

changed 2.zip (173.4 KB)

@gwert,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 18.2 and have not found the shared issue. Please make sure that you are using latest version of Aspose.Words for .NET 18.2 and same Word document. We have attached the output PDF with this post for your kind reference. 18.2.pdf (254.3 KB)

Hello @tahir.manzoor,

Can you please provide some more details regarding your Aspose setup? I have attached the version that is being generated with the 18.2 verion of Aspose.Words. It would seem that there is either a spacing issue or a font issue. Is it possible to tell? In the initial left hand column, something is wrong which is causing everything else to be pushed down.

Test Aspose Word (v.01) (1).pdf (508.4 KB)

@gwert,

Thanks for your inquiry. Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing. Thanks for your cooperation.

@tahir.manzoor

Hello I have attached a standalone console application. It currently has the 18.2 version of Aspose. We noticed the biggest issue is the first column where the spacing gets really messed up.

AsponseExample1.zip (269.4 KB)

@gwert,

Thanks for sharing the detail. You are using following Aspose.Words’ code to generate PDF file. We have tested the scenario using latest version of Aspose.Words for .NET 18.3 and have not found the shared issue.

var doc = new Document(input);
doc.AcceptAllRevisions();
doc.Save(output, WordSaveFormat.Pdf);

The problematic PDF file shared by you is generated by Aspose.PDF. Please share the Aspose.PDF code example to reproduce this issue at our end. Thanks for your cooperation.

@tahir.manzoor

The pdf provided was generated by Aspose.Words and it is incorrect. I just ran the original word file with Aspose.Words 18.3 and the generated pdf file is still incorrect. Here is what it looks like with 18.3

changed 2 test1.pdf (270.3 KB)

Here is what is generated with Microsoft Word. This is what is being expected.

changed 2 for aspose.pdf (242.2 KB)

Please note the format of the first column of text on and how it overflows into column 2. Compare that with the word file and the word generated file.

Can you provide me with source code that you are using and generating the correct result?

@gwert,

Thanks for your inquiry. You are using Aspose.Words in evaluation mode. Please get 30 days temporary license and apply it before converting document to PDF.

It appears that 18.3 resolves that problem. Also using Aspose.Words in evaluation mode didn’t change the format of the text underlying the header.

@gwert,

Thanks for your feedback. It is nice to hear from you that your problem has been solved using latest version of Aspose.Words for .NET 18.3.