Remove Open Action
Contents
[
Hide
]
Remove the document-open action
- Bind the source PDF to the
PdfContentEditorfacade. - Call
removeDocumentOpenAction(). - 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();
}
}