save_redacted_pdf
Apply redaction annotations to PDF documents and save the secured version, automatically generating output files with '_redacted' suffix when no custom path is specified.
Instructions
Apply all redactions and save the redacted PDF.
This tool applies all pending redaction annotations to the PDF and saves it. By default, it saves to a new file with '_redacted' appended to the original filename.
Args: pdf_path: Path to the PDF file (must be already loaded) output_path: Optional custom output path. If not provided, saves as '<original_name>_redacted.pdf' ctx: MCP context for logging
Returns: Path to the saved redacted PDF
Raises: ToolError: If the PDF is not loaded or save fails
Input Schema
Name | Required | Description | Default |
---|---|---|---|
output_path | No | Optional output path. If not provided, appends '_redacted' to the original filename | |
pdf_path | Yes | Path to the loaded PDF file |