版本:23.8
编程语言:java
问题截图:
具体日志:
error.zip (698 字节)
源文件:
资产管理计划资产管理合同的公告 (1).docx (31.0 KB)
错误信息和日志文件、源文件已提供
以下是转换代码:
ByteArrayOutputStream out = new ByteArrayOutputStream();
Document doc = new Document(in);
doc.getLayoutOptions().setCommentDisplayMode(CommentDisplayMode.HIDE);
doc.acceptAllRevisions();
PdfSaveOptions opts = new PdfSaveOptions();
opts.setUpdateFields(false);
opts.setSaveFormat(SaveFormat.PDF);
doc.save(out, opts);