オープンアクションの削除

文書オープンアクションの削除

  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();
    }
}