Remove Open Action

Remove the document-open action

  1. Bind the source PDF to the PdfContentEditor facade.
  2. Call removeDocumentOpenAction().
  3. Save the updated PDF document.
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();
    }
}