pdf_embed_qr_code
Embed QR codes or barcodes like code128, datamatrix, ean13, pdf417, or azteccode into any PDF page at precise coordinates.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"content": "<content>",
"outputPath": "<outputPath>",
"page": "<page>",
"x": "<x>",
"y": "<y>"
},
"name": "pdf_embed_qr_code"
}
}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. |