Font Difference between doc and generated pdf file


#1

Hello,

We use 'Aspose.Words for Java' to convert doc & docx files to pdf. Recently we came across an issues that when generating pdf file, we see that some sections of pdf have different font and style when compared to source doc. Need some assistance in this regard.

image.png (57.3 KB)
Attached screen shot for the same. Please take a look into the wording "dated as of 17 june 2019 to the Schedule to the "
First part of the attached is from doc and second is from pdf generated.

Sai Krishna Potluri.


#2

@skpotluri

Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.


#3

Appreciate quick response and here goes document.
Example Doc for Aspose.zip (42.0 KB)

Note:- Please do make note that the difference we are seeing is between the lines
"dated as of 17 June 2019

to the Schedule to the".


#4

@skpotluri

Thanks for sharing the document. We have tested the scenario using the latest version of Aspose.Words for .NET 19.6 and have not found the shared issue. So, please use Aspose.Words for .NET 19.6.

Moreover, please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you are converting documents to PDF. Please refer to the following articles:

How Aspose.Words Uses True Type Fonts
How to Receive Notification of Missing Fonts and Font Substitution during Rendering


#5

Hi,
Good Morning. Appreciate your quick response and also want to be clear from our side that we use ‘Aspose.Words for Java’ running application on ‘Linux 2.6.32-754.11.1.el6.x86_64 x86_64’. Also looking at doc attached we see that where we found the difference is in “Times New Roman” 12, which is True type font. So can you please revisit your response.

With Regards,
Sai Krishna.P


#6

@skpotluri

Please note that Aspose.Words mimics the behavior of MS Word. If you convert your document to PDF using MS Word, you will get the same output.

Have you tried the latest version of Aspose.Words for Java 19.6?

Please ZIP and attach your problematic and expected output PDF files here for our reference. We will then provide you more information about your query.


#7

Hello,

Apologies for delayed response, quick test seem to work, but testing in progress to see if upgraded jar support existing features. Will update test results soon.

With Regards,
Sai Potluri.


#8

@skpotluri

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