إزالة إجراء الفتح

إزالة إجراء فتح المستند

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