Some issues when converting from word to pdf

Hello. We are using your product.

The version we are using is outdated and we would like to purchase the latest version.
Before purchasing the latest version, I tried to test the PDF conversion on your site (Convert A File Word, PDF, JPG Online).
and found some problems.

When converting from a WORD file to PDF, we found issues such as thickening of text, blurring of text, and misalignment.

Please check the attached img files for more details.
We would like to purchase a version with these issues fixed.

Please confirm how much time it will take to get the new version.
Thank you.

@emrods Could you please attach your actual input and output documents here for testing? We will check the issue and provide you more information. Unfortunately screenshots do not allow us to analyze the problem.

The problem with document layout might occur because the fonts used the documents are not available in the environment where documents are converted to PDF. To build an accurate document layout the fonts are required. If Aspose.Words cannot find the fonts used in the document the fonts are substituted. This might lead into the layout differences due to differences in fonts metrics. You can implement IWarningCallback to get a notification when font substitution is performed.
The following articles can be useful for you:
https://docs.aspose.com/words/java/specify-truetype-fonts-location/
https://docs.aspose.com/words/java/install-truetype-fonts-on-linux/

Thank you for your response.
I am attaching the word files that I used for the pdf conversion.
The problem is as follows by file name.

  • capture2 & capture3 : Left and right alignment broken
  • capture 4 : Empty cells have different heights
  • capture 5 : The text is blurred and hard to see
  • capture 6 : Text is cut off

Please check it out.
Thank you.

capture2 & capture3.docx (160.6 KB)

capture4.docx (63.8 KB)

견적서_테스트.docx (27.7 KB)

capture6.docx (43.2 KB)

@emrods

  1. capture2 & capture3.docx - The HY특수문자3 font used in your document is not available on my side. Could you please attach this font, since font substitution might affect document layout as mentioned above.

  2. capture4.docx - The HY헤드라인M font used in your document is not available on my side. Also as I can see PDF produced by Aspose.Words on my side matches PDF document produced by MS Word:
    MS Word: ms.pdf (349.7 KB)
    Aspose.Words: out.pdf (159.6 KB)

  3. 견적서_테스트.docx - Cannot see the problem.
    MS Word: ms.pdf (54.3 KB)
    Aspose.Words: out.pdf (68.1 KB)

  4. capture6.docx - Also do not see the problem in the output document.
    MS Word: ms.pdf (96.6 KB)
    Aspose.Words: out.pdf (57.1 KB)

Hello. First of all, thank you for your reply.
The files you have uploaded are both ms.pdf and out.pdf, which are recognized as pdf files.

What I was inquiring about is the difference that occurs when converting a word file with .doc or .docx extension type to pdf and saving it.
The conversion test was done on the below url provided by aspose site.

Convert A File Word, PDF, JPG Online

I am attaching the files again for each item.
Attach the original file and the converted finished PDF file together.

Original word file before PDF conversion :
capture2&capture3.docx (159.5 KB)

PDF file after conversion :
capture2&capture3.pdf (261.5 KB)

Original WORD FILE before PDF conversion :
capture4.docx (61.4 KB)

PDF file after conversion :
capture4.pdf (115.0 KB)

I tested it again and found that it is converted normally.

Original WORD FILE before PDF conversion :
capture6.docx (43.2 KB)

PDF file after conversion :
capture6.pdf (46.1 KB)

Please check again.
Thank you.

@emrods ms.pdf files were produced by MS Word, i.e. this is how MS Word renders your DOCX document. These documents can be used to compare Aspose.Words conversion result (out.pdf) with.

As I have mentioned some fonts used in your original DOCX documents are not available on my side and might not be available on the server where online convertor is hosted. To build an accurate document layout the fonts are required. If Aspose.Words cannot find the fonts used in the document the fonts are substituted. This might lead into the layout differences due to differences in fonts metrics. You can implement IWarningCallback to get a notification when font substitution is performed.

Hello. Thank you for your reply.
Based on your answers, I have a few questions for you.

  1. do you mean that some fonts may not be applicable even in the online converter (address) provided by aspose site?

  2. so in order to test it accurately, would it be possible to unify all the fonts in the .docx file to ‘gothic’ or ‘batang’ and then test it?

  3. I would like to attach the fonts(HY헤드라인M, HY특수문자3) you said were missing, but the .ttf file is not attached, what should I do?

Please check.
Thank you.

@emrods

  1. There are plenty of fonts available world wide and Aspose cannot provide all of them. So, yes, some fonts might not be available and you should provide them to get the proper document layout.

  2. Yes, you can test with documents that uses fonts available in your test environment.

  3. You can zip and attach the font files.

Hello. Thank you for your reply.

I am attaching a zip file of the ‘HY헤드라인M’ font used in capture4.
hy헤드라인m.zip (382.6 KB)

Please check.
Thank you.

@emrods Thank you for additional information. Here is the output produced by the following code:

FontSettings.getDefaultInstance().setFontsSources(new FontSourceBase[] { new SystemFontSource(),  new FolderFontSource("C:\\Temp\\fonts", true) });
    
Document doc = new Document("C:\\Temp\\in.docx");
doc.save("C:\\Temp\\out.pdf");

out.pdf (190.1 KB)

As I can see the document looks the same as it is shown in MS Word on my side.

Hello. Thank you for your reply.
However, it’s not the answer I was looking for.

I would like to ask you to reconfirm the following.

  1. Is the version applied on the Free Online Converter site
    (Convert A File Word, PDF, JPG Online) the latest version?
    As I said, we want to make sure that we are buying the latest version without any errors.
    The only way we can verify that your product is error-free is to test it on the Free Online Converter site.

  2. Did you test it on the same Free Online Converter site I tested it on?
    It’s strange that we convert the same document from WORD to PDF, but the results are different when I test it and when you test it.

  3. Here is how I tested converting a WORD file to a PDF file on the Free Online Converter site.
    Please check if the method below is wrong.
    (I also attach the screenshot(image.jpg) for your better understanding).

  • Step 1. upload word file(.docx) in the choose files section
  • Step 2. select the save as combo box as pdf
  • Step 3. click the convert button
    image.jpg (178.7 KB)
  1. I changed all the documents below to BATANG font and tested them again on the Free Online Converter site, but the problems I mentioned (broken fonts, cell height issues, broken text, etc.) occur. I request you to test it in your environment with the documents below.

Please check issues again.
Thank you.

@emrods As I have mentioned the fonts used in your documents might not be available on the server where free online convertor is hosted. To build an accurate document layout the fonts are required. If Aspose.Words cannot find the fonts used in the document the fonts are substituted . This might lead into the layout differences due to differences in fonts metrics. You can implement IWarningCallback to get a notification when font substitution is performed.

BATANG font is not available on the server where online convertor is hosted so this font is substituted with Arial Unicode. You can see this in the output PDF properties:

To properly test document conversion, you should test in the environment where all required fonts are available.

I understand your answer.

If so, What is the free version of the online converter (that I tested)?
We would like to purchase the aspose-words-24.7 version.
I was wondering if the version you tested was aspose-words-24.7?

Thanks.

@emrods

This is a free online convertor:
https://products.aspose.app/words/conversion
but it simply cannot have all the fonts that might be used in your documents.

I tested with the latest 24.10 version of Aspose.Words. And provided required fonts as described in our documentation:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

Thanks for the quick reply, so the free online converter( https://products.aspose.app/words/conversion ) is the latest 24.10 version?

@emrods The current version of online convertor used Aspose.Words for .NET 24.9 version. But the apps are updated once new releases come out.

Thanks for the reply,
So the issue I was asking about was fixed in 24.9 version. or 24.10version. ?

I have not received a response since February 19th.

And, I want to test version 24.9version. or 24.10version. with maven in my local development environment.
But it seems that versions is not available.
I only have maven up to version 24.7version.

Please provide the 24.9version. or 24.10version. so that I can fetch it with maven.

@emrods Yes, the underlying issue (WORDSNET-26631) has been resolved in 24.10 version of Aspose.Words.

You the following maven configuration:

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository>
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>24.10</version>
    <classifier>jdk17</classifier>
</dependency>