process_pdf_post_conversion
Finalize PDFs by moving them to target locations, adding watermarks and QR codes, and cleaning temporary files. Use after generating PDFs with playwright-mcp to complete post-processing.
Instructions
🔧 PDF Post-Processing Unified Tool - ⚠️ IMPORTANT: This is a necessary follow-up step for playwright-mcp's browser_pdf_save command! After using playwright-mcp to generate PDF, this tool must be called immediately to complete final processing. Features include: 1) Automatically move PDF from playwright temporary path to target location 2) Uniformly add watermarks and QR codes 3) Clean up temporary files. Workflow: playwright-mcp:browser_pdf_save → doc-ops-mcp:process_pdf_post_conversion
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addQrCode | No | Whether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set) | |
addWatermark | No | Whether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set) | |
customText | No | Custom text below QR code | Scan QR code for more information |
playwrightPdfPath | Yes | PDF file path generated by playwright-mcp (usually in temporary directory) | |
qrCodePath | No | QR code image path (overrides environment variable) | |
qrOpacity | No | QR code opacity | |
qrPosition | No | QR code position | bottom-center |
qrScale | No | QR code scale ratio | |
targetPath | No | Target PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable | |
watermarkImage | No | Watermark image path (overrides environment variable) | |
watermarkImageOpacity | No | Watermark image opacity | |
watermarkImagePosition | No | Watermark image position | fullscreen |
watermarkImageScale | No | Watermark image scale ratio | |
watermarkText | No | Watermark text content |