Skip to content

Delete Page Action: deletePage

The deletePage action is used to remove pages containing specific text from a PDF file. This is particularly helpful for editing PDF documents by excluding irrelevant or sensitive information.

Example: You want to remove all pages containing the text “Draft” from a PDF document named QuarterlyReport.pdf between pages 1 and 15.

Steps to Configure:

  1. Add a new step.
  2. Select SET from the Action dropdown.
  3. Enter a variable name in Element Key (e.g., PageDeletionResult). This variable will store the result of the operation (true or false).
  4. Click on Form, select Functions, and choose PDF Handler Functions.
  5. In the action field, select deletePage and provide the following parameters:
    • fPath: Specify the path to the PDF file (e.g., C:\Reports\QuarterlyReport.pdf).
    • text: Specify the text to identify the pages to delete (e.g., ” Draft”).
    • start: Define the starting page for the operation (e.g., 1).
    • end: Define the ending page for the operation (e.g., 15).
  6. Click Save.
v7_pdf_file_handler_pagedelete_list_view
List View
v7_pdf_file_handler_pagedelete_grid_view
Grid View

Outcome on execution:

  • The specified pages containing the given text are removed from the PDF file.
  • A boolean result (true/false) is stored in the variable defined in the Element Key. This variable can be referenced in subsequent steps of the automation process using the syntax ${VariableName} (e.g., ${PageDeletionResult}).

Last updated: Sep 11, 2025
Back To Top