Product Labels

QR Product Label Template

Compact QR product label with product text, batch details, and machine-readable QR content.

qr-product-labelproductlabelqrcoderetail

Template JSON

rev_20260529_v2_qr_product_card
{
  "schema": {
    "fields": [
      {
        "key": "primary_text",
        "type": "string",
        "required": true,
        "label": "Primary text",
        "default_value": "QR Product Label"
      },
      {
        "key": "secondary_text",
        "type": "string",
        "required": true,
        "label": "Secondary text",
        "default_value": "Batch 2026-05"
      },
      {
        "key": "detail_text",
        "type": "string",
        "required": true,
        "label": "Detail text",
        "default_value": "Zone A / Shelf 3"
      },
      {
        "key": "barcode_payload",
        "type": "string",
        "required": true,
        "label": "Barcode payload",
        "default_value": "https://gpdf.com/templates/qr-product-label-template"
      },
      {
        "key": "footer_text",
        "type": "string",
        "required": true,
        "label": "Footer text",
        "default_value": "Generated by gPdf template JSON"
      }
    ]
  },
  "layout": {
    "pages": [
      {
        "width": 76,
        "height": 50,
        "elements": [
          {
            "type": "rect",
            "x": 0,
            "y": 0,
            "width": 76,
            "height": 50,
            "z_index": 0,
            "fill": {
              "color": "#FFFFFF",
              "opacity": 1
            }
          },
          {
            "type": "rect",
            "x": 0,
            "y": 0,
            "width": 76,
            "height": 9,
            "z_index": 0,
            "fill": {
              "color": "#0F766E",
              "opacity": 1
            }
          },
          {
            "type": "text",
            "x": 4,
            "y": 3,
            "frame": {
              "width": 68
            },
            "content": {
              "blocks": [
                {
                  "type": "paragraph",
                  "inlines": [
                    {
                      "type": "text",
                      "text": "QR Product Label",
                      "style": {
                        "font_weight": "bold"
                      }
                    }
                  ]
                }
              ]
            },
            "defaults": {
              "paragraph": {
                "line_height": 1.18
              },
              "run": {
                "font_family": "NotoSans-Regular",
                "font_mode": "prefer",
                "font_size": 5.6,
                "color": "#FFFFFF",
                "font_weight": "bold"
              }
            },
            "z_index": 0
          },
          {
            "type": "text",
            "x": 4,
            "y": 15,
            "frame": {
              "width": 41.040000000000006
            },
            "content": {
              "blocks": [
                {
                  "type": "paragraph",
                  "inlines": [
                    {
                      "type": "variable",
                      "scope": "binding",
                      "name": "primary_text",
                      "style": {
                        "font_weight": "bold"
                      }
                    },
                    {
                      "type": "line_break"
                    },
                    {
                      "type": "variable",
                      "scope": "binding",
                      "name": "secondary_text"
                    },
                    {
                      "type": "line_break"
                    },
                    {
                      "type": "variable",
                      "scope": "binding",
                      "name": "detail_text"
                    }
                  ]
                }
              ]
            },
            "defaults": {
              "paragraph": {
                "line_height": 1.18
              },
              "run": {
                "font_family": "NotoSans-Regular",
                "font_mode": "prefer",
                "font_size": 5.8,
                "color": "#111827"
              }
            },
            "z_index": 0
          },
          {
            "type": "barcode",
            "format": "qrcode",
            "content": "{{barcode_payload}}",
            "x": 52,
            "y": 15,
            "width": 18,
            "height": 18,
            "barcode_text": {
              "enabled": false,
              "position": "bottom"
            },
            "z_index": 0
          },
          {
            "type": "line",
            "x1": 4,
            "y1": 40,
            "x2": 72,
            "y2": 40,
            "stroke": {
              "color": "#CBD5E1",
              "width": 0.2
            },
            "z_index": 0
          },
          {
            "type": "text",
            "x": 4,
            "y": 43,
            "frame": {
              "width": 68
            },
            "content": {
              "blocks": [
                {
                  "type": "paragraph",
                  "inlines": [
                    {
                      "type": "variable",
                      "scope": "binding",
                      "name": "footer_text"
                    }
                  ]
                }
              ]
            },
            "defaults": {
              "paragraph": {
                "line_height": 1.18
              },
              "run": {
                "font_family": "NotoSans-Regular",
                "font_mode": "prefer",
                "font_size": 4.4,
                "color": "#475569"
              }
            },
            "z_index": 0
          }
        ]
      }
    ]
  }
}
Sample data
{
  "primary_text": "QR Product Label",
  "secondary_text": "Batch 2026-05",
  "detail_text": "Zone A / Shelf 3",
  "barcode_payload": "https://gpdf.com/templates/qr-product-label-template",
  "footer_text": "Generated by gPdf template JSON"
}

Rendered PDF

PDF