删除打开操作

删除文档打开操作

  1. 将源 PDF 绑定到 PdfContentEditor 对象。
  2. 呼叫 removeDocumentOpenAction()。
  3. 保存更新后的 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();
    }
}