删除打开操作
Contents
[
Hide
]
删除文档打开操作
- 将源 PDF 绑定到
PdfContentEditor对象。 - 呼叫
removeDocumentOpenAction()。 - 保存更新后的 PDF 文档。
public static void removeOpenAction(Path inputFile, Path outputFile) {
PdfContentEditor editor = new PdfContentEditor();
try {
editor.bindPdf(inputFile.toString());
editor.removeDocumentOpenAction();
editor.save(outputFile.toString());
} finally {
editor.close();
}
}