add_qrcode
Add QR codes to PDF documents with optional friendly text. Supports custom positioning, scaling, opacity, and user-defined or environment-specified image paths for seamless integration.
Instructions
Add QR code to PDF documents with friendly text below. QR code must be an image file (PNG/JPG). Priority: user provided path > environment variable QR_CODE_IMAGE
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addText | No | Add friendly text below QR code | |
customText | No | Custom text (default: 'Scan QR code for more information') | |
pdfPath | Yes | PDF file path | |
qrCodePath | No | QR code image path (PNG/JPG). Has highest priority. If not provided, uses QR_CODE_IMAGE environment variable. | |
qrOpacity | No | QR code opacity | |
qrPosition | No | bottom-center | |
qrScale | No | QR code scale ratio |
Input Schema (JSON Schema)
{
"properties": {
"addText": {
"default": true,
"description": "Add friendly text below QR code",
"type": "boolean"
},
"customText": {
"description": "Custom text (default: 'Scan QR code for more information')",
"type": "string"
},
"pdfPath": {
"description": "PDF file path",
"type": "string"
},
"qrCodePath": {
"description": "QR code image path (PNG/JPG). Has highest priority. If not provided, uses QR_CODE_IMAGE environment variable.",
"type": "string"
},
"qrOpacity": {
"default": 1,
"description": "QR code opacity",
"type": "number"
},
"qrPosition": {
"default": "bottom-center",
"enum": [
"top-left",
"top-right",
"top-center",
"bottom-left",
"bottom-right",
"bottom-center",
"center"
],
"type": "string"
},
"qrScale": {
"default": 0.15,
"description": "QR code scale ratio",
"type": "number"
}
},
"required": [
"pdfPath"
],
"type": "object"
}