Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
addQrCodeNoWhether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set)
addWatermarkNoWhether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set)
customTextNoCustom text below QR codeScan QR code for more information
playwrightPdfPathYesPDF file path generated by playwright-mcp (usually in temporary directory)
qrCodePathNoQR code image path (overrides environment variable)
qrOpacityNoQR code opacity
qrPositionNoQR code positionbottom-center
qrScaleNoQR code scale ratio
targetPathNoTarget PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable
watermarkImageNoWatermark image path (overrides environment variable)
watermarkImageOpacityNoWatermark image opacity
watermarkImagePositionNoWatermark image positionfullscreen
watermarkImageScaleNoWatermark image scale ratio
watermarkTextNoWatermark text content

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tele-AI/doc-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server