是否支持读取指定页内容转换为HTML?
您可以使用以下Java代码在Android设备上将DOCX或DOC或RTF Word文档的所有页面转换为HTML格式:
Document doc = new Document("input.docx");
HtmlFixedSaveOptions opts = new HtmlFixedSaveOptions();
opts.setPageCount(1);
for (int i = 0; i < doc.getPageCount(); i++) {
opts.setPageIndex(i);
doc.save("output_" + i + ".html", opts);
}
希望这可以帮助