pdf_embed_qr_code
Add QR codes or barcodes to PDF pages at precise positions to encode data like URLs, contact details, or product information directly into documents.
Instructions
Embed a QR code or barcode into a specific page of a PDF at given coordinates. Supports qrcode, code128, datamatrix, ean13, pdf417, and azteccode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| content | Yes | Data to encode in the QR code or barcode | |
| outputPath | Yes | Absolute path for the output PDF | |
| page | Yes | Target page number (1-indexed) | |
| x | Yes | X position in points from the left edge | |
| y | Yes | Y position in points from the bottom edge | |
| size | No | Size of the QR code/barcode in points. Defaults to 100. | |
| type | No | Barcode type. Defaults to qrcode. |