run_workflow
Run Workflow
Execute a pre-configured Pdf4me workflow with a document. Workflows are reusable processing pipelines created in the Pdf4me dashboard that chain multiple operations together.
run_workflow
Execute a pre-configured Pdf4me workflow with a document. Workflows are reusable processing pipelines created in the Pdf4me dashboard that chain multiple operations together.
flatten_pdf
Flatten a PDF to remove all interactive form fields, making the document read-only with all form data permanently embedded.
create_pdfa
Convert a PDF document to PDF/A format for long-term archiving and compliance. Choose from multiple PDF/A standards (1a, 1b, 2a, 2b, 2u, 3a, 3b, 3u).
extract_content
Extract text, images, tables, or text matching a regular expression from a PDF document. Use this to pull structured data out of PDFs for further processing.
protect_pdf
Set password protection on a PDF document with customizable permissions. Control what users can do with the document (print, copy, annotate, etc.).
rotate_pdf
Rotate pages in a PDF document. Rotate all pages at once or a specific page by 90, 180, or 270 degrees.
generate_document
Generate a document from a DOCX, PDF, or HTML template with dynamic data. Supports mail merge with JSON data, dynamic tables, and merge fields. Use for automating contracts, invoices, reports, and other data-driven documents.
linearize_pdf
Linearize (optimize) a PDF for fast web viewing. Linearized PDFs can start displaying before the full file is downloaded.
split_pdf
Split a PDF document into multiple files. Supports splitting by page number, recurring intervals, page ranges, text content, or barcodes. Returns an array of split document files.
read_barcode_from_pdf
Read and extract barcode or QR code data from a PDF document. Returns all detected barcodes with their type, value, and page number.
unlock_pdf
Remove password protection from a PDF document. Requires the current password to unlock.
merge_pdfs
Merge multiple PDF files into a single PDF document. Files are merged in the order provided. Also supports overlaying one PDF on another (e.g. adding a letterhead or watermark layer).
repair_pdf
Attempt to repair a damaged or corrupted PDF document to recover its content.
add_barcode_to_pdf
Add a barcode or QR code to a PDF document. Supports 150+ barcode types including QR codes, Code128, DataMatrix, EAN13, UPC-A, and more. Configure position, size, opacity, and text display options.
extract_pages
Extract specific pages from a PDF document into a new PDF. Specify which pages to keep by their page numbers.
convert_to_pdf
Convert office documents (Word, Excel, PowerPoint), images, HTML, Markdown, or URLs into PDF format. Supports **.docx, .xlsx, .pptx, .png, .jpg, .html, .md** and more. For HTML/Markdown, provide the file content as base64. For URL conversion, provide the web URL directly.
find_and_replace_text
Find and replace text within a PDF document on specified pages.
add_page_numbers
Add page numbers to a PDF document. Configure position, font size, formatting, and whether to skip the first page.
fill_pdf_form
Fill a PDF form with data provided as a JSON string. Map field names to values to automatically populate form fields. Optionally keep the form editable after filling.
create_images_from_pdf
Convert PDF pages to images (PNG, JPG, TIFF, BMP). Specify which pages to convert and the desired image width in pixels.
add_header_footer
Add HTML-formatted content as a header, footer, or both to a PDF document. Supports rich formatting, images, and custom margins.
classify_document
Classify or identify a document based on its file content. Returns the document class name which can be used for routing and applying appropriate processing templates.
create_barcode_image
Create a standalone barcode or QR code image from text. Returns the barcode as an image file.
delete_pages
Remove specific pages or blank pages from a PDF document. Use page numbers for targeted removal or automatic blank page detection.
add_watermark
Add a text or image watermark/stamp to a PDF document. Control position, size, transparency, rotation, and more. Use text watermarks for labels like "DRAFT" or "CONFIDENTIAL", or image watermarks for logos and signatures.
convert_from_pdf
Convert a PDF document to Word (.docx), Excel (.xlsx), or PowerPoint (.pptx) format. Choose the target format and quality type to control the conversion output.
get_pdf_metadata
Retrieve metadata from a PDF document including title, author, page count, creation date, encryption status, PDF version, compliance level, and whether the document is signed.
compress_pdf
Optimize and compress a PDF document to reduce file size. Choose from multiple compression profiles tailored for web viewing, printing, or maximum compression.
ocr_pdf
Apply OCR (Optical Character Recognition) to a scanned PDF or image-based document to create a searchable PDF with selectable text. Useful for making scanned documents indexable and enabling text extraction.
add_margin_to_pdf
Add margins in millimeters to any side of a PDF document, adjusting the page layout for print preparation or consistent document formatting.
add_attachments_to_pdf
Embed one or more files directly into a PDF document as attachments, creating a PDF package with supporting documents or resources.
extract_attachments_from_pdf
Extract all embedded file attachments from a PDF document and return each extracted file as a Slate attachment.
parse_document
Parse a PDF with a PDF4me dashboard parsing template and return extracted structured data, document type, page count, and confidence when available.
sign_pdf
Add a visible image-based signature to a PDF. Provide a signature image and configure page range, alignment, size, margins, opacity, and layering.
extract_pdf_form_data
Extract fillable form field names, values, and field types from a PDF form as structured JSON.
add_form_field_to_pdf
Add an interactive TextBox or CheckBox field to a PDF at a specific position and page range.
Convert, merge, split, compress, and manipulate PDF and office documents. Perform OCR on scanned documents to extract text. Generate and read 150+ barcode and QR code types. Extract structured data from PDFs using templates. Classify documents by content. Generate dynamic documents via mail merge with JSON data. Fill PDF forms. Apply watermarks, stamps, headers, and footers. Protect PDFs with passwords and manage permissions. Convert between PDF, Word, Excel, PowerPoint, HTML, and image formats. Optimize PDFs for web or print. Create PDF/A compliant documents for archiving. Rotate, crop, remove, and reorder pages. Add digital signatures, redact content, edit metadata, and repair damaged PDFs. Execute reusable multi-step document processing workflows.
Common questions about connecting Pdf 4 Me to AI agents with Metorial.