Free Support Forum - aspose.com

Aspose.HTML转图片文字丢失

归档.zip (70.4 KB)

版本:

Aspose.HTML-19.9 for java

问题:

使用html工具转图片时,文字丢失了,且有些模块位置错误了

示例代码:

HTMLDocument document = new HTMLDocument(input);
HtmlRenderer renderer = new HtmlRenderer();
ImageRenderingOptions options = new ImageRenderingOptions();
options.setFormat(ImageFormat.Jpeg);
ImageDevice imageDevice = new ImageDevice(options, output);
renderer.render(imageDevice, document);

@modongning,

Thanks for contacting support.

We have tested this scenario in our environment and have been able to observe the issue that you have mentioned. We have logged issue with ID HTMLJAVA-359 in our issue tracking system. We will share with you as soon as logged issue is fixed.