Hi,
I use your package to convert a Word file to a PDF file.
Usually the conversion is correct and the PDF file is the same as the Word file,
But in a specific Word file the generated PDF file is not the same as the Word file.
Word file example: WordFile.docx (39.5 KB)
@Oryos The problem is not reproducible on my side using the latest 24.5 version of Aspose.Words and the following simple code:
Document doc = new Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out.pdf");
Here is the output produced on my side: out.pdf (49.6 KB)
I have inspected your output PDF and see that David font used in the original MS Word document is not embedded into the PDF. Most likely the environment does not have this font. Please note Aspose.Words needs the fonts used in the document to build document layout upon conversion to PDF. If Aspose.Words cannot find the font used in the document, the font is substituted. This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn how to specify location where Aspose.Words will look for fonts: https://docs.aspose.com/words/net/specifying-truetype-fonts-location/
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.