Menghapus aksi buka

Menghapus aksi buka dokumen

  1. Ikat PDF sumber ke fasad PdfContentEditor.
  2. Panggil removeDocumentOpenAction().
  3. Simpan dokumen PDF yang diperbarui.
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();
    }
}