Compliance Labels

PDF417 Compliance Label Template

Compliance label with PDF417 payload, dynamic text fields, and compact operational geometry.

pdf417compliance-labelbarcoderegulatorylogistics

Template JSON

rev_20260529_v2_pdf417_compliance
{
  "schema": {
    "fields": [
      {
        "key": "primary_text",
        "type": "string",
        "required": true,
        "label": "Primary text",
        "default_value": "PDF417 Compliance 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/pdf417-compliance-label-template"
      },
      {
        "key": "footer_text",
        "type": "string",
        "required": true,
        "label": "Footer text",
        "default_value": "Generated by gPdf template JSON"
      }
    ]
  },
  "layout": {
    "pages": [
      {
        "width": 100,
        "height": 45,
        "elements": [
          {
            "type": "rect",
            "x": 0,
            "y": 0,
            "width": 100,
            "height": 45,
            "z_index": 0,
            "fill": {
              "color": "#FFFFFF",
              "opacity": 1
            }
          },
          {
            "type": "rect",
            "x": 0,
            "y": 0,
            "width": 100,
            "height": 9,
            "z_index": 0,
            "fill": {
              "color": "#4F46E5",
              "opacity": 1
            }
          },
          {
            "type": "text",
            "x": 4,
            "y": 3,
            "frame": {
              "width": 92
            },
            "content": {
              "blocks": [
                {
                  "type": "paragraph",
                  "inlines": [
                    {
                      "type": "text",
                      "text": "PDF417 Compliance 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": 54
            },
            "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": "pdf417",
            "content": "{{barcode_payload}}",
            "x": 60,
            "y": 15,
            "width": 34,
            "height": 12,
            "barcode_text": {
              "enabled": false,
              "position": "bottom"
            },
            "z_index": 0
          },
          {
            "type": "line",
            "x1": 4,
            "y1": 35,
            "x2": 96,
            "y2": 35,
            "stroke": {
              "color": "#CBD5E1",
              "width": 0.2
            },
            "z_index": 0
          },
          {
            "type": "text",
            "x": 4,
            "y": 38,
            "frame": {
              "width": 92
            },
            "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": "PDF417 Compliance Label",
  "secondary_text": "Batch 2026-05",
  "detail_text": "Zone A / Shelf 3",
  "barcode_payload": "https://gpdf.com/templates/pdf417-compliance-label-template",
  "footer_text": "Generated by gPdf template JSON"
}

Rendered PDF

PDF