Wmf to jpeg garbled Chinese character

Converter converter = new Converter(“C:\test3.wmf”);
// Prepare conversion options for target format PDF
ConvertOptions convertOptions = FileType.fromExtension(“jpeg”).getConvertOptions();
// Convert to PDF format
converter.convert(“C:\output3.jpeg”, convertOptions);

output.pdf (482.5 KB)
output.jpg (248.7 KB)

Using the above code to convert WMF to PDF or JPEG will be Chinese garble. Garbled files as above
. The WMF file cannot be uploaded
output.pdf (483 KB)
output.jpg (249 KB)

1 Like

@angel1magic

Please compress the source file (WMF) to ZIP and then upload here. We need the problematic file in order to continue the investigation.

test3.zip (148.3 KB)
@Atir_Tahir

@angel1magic

We cannot reproduce this issue at our end. Please take a look at the output.jpeg (204.5 KB). Could you please share following details:

  • API version that you are using
  • Operating system
  • List of installed fonts
  • Make sure that the font is not missing
    .
  • API version is 22.3
  • Windows 10 Pro
  • List of installed fonts:
    image.png (100.9 KB)
    image.png (77.1 KB)
  • I had the same problem with online conversions before. I guess there may be a font problem but I don’t know how to fix it.What do I do with this defaultfont
    image.png (60.5 KB)
1 Like

@angel1magic

We are further investigating this issue.

Thank you very much for your reply which has helped me find the problem.The file contains【宋体】and【宋体与数字结合】.My system does not have the latter font. * I downloaded it and now it’s ready.
I just have one last question:this JAR is over 400M, is there anything smaller?

1 Like

@angel1magic

We are already investigating this scenario. Your investigation ticket ID is CONVERSIONJAVA-1599. However, we cannot share any ETA at the moment. You’ll be notified in case of any update.