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.
@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
.
@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.