Release · patch

v2026.10 October 2026: input resource limits

JSON Render enforces deterministic limits for table grids, barcodes, raster images, and SVG images, and rejects oversized input with documented error codes.

Highlights
  • Tables hold at most 65536 grid cells, and all tables in one request or Template batch at most 262144.
  • Barcode content, format and shape names, drawn bearer bars, and encoded symbol size have fixed limits.
  • PNG and WebP sizes are checked from their headers before decoding.
  • SVG images load only embedded data: images, reject compressed SVG, and bound filter cost.
  • Every request colour must be written as #RRGGBB.
  • Barcodes use xBarcode 2.0.0; empty or over-capacity barcode content returns API-002.

All changes

  • security Table row_span and col_span are checked against the grid on every target; one table holds at most 65536 grid cells and all tables in one request or Template batch at most 262144 (API-002).
  • security Barcode content holds at most 4096 UTF-8 bytes, format and shape names at most 64 bytes, drawn bearer bars at most 64 modules, and encoded symbols at most 1048576 modules, or 65536 with circle modules except MaxiCode (API-002).
  • security PNG and WebP images hold at most 8192 pixels per side, 4194304 pixels, and 16777216 decoded bytes; every WebP frame is checked before decoding, and WebP chunks that extend past the image data are rejected (API-007).
  • security SVG images resolve only embedded data: images, which follow the raster limits (a GIF frame must lie within its logical screen), and reject compressed SVG (API-002).
  • security SVG filters, including content nested inside filtered groups, render at a lower resolution when their estimated cost exceeds the budget and return API-002 beyond 1048576 pixels per region, 64 primitives, numOctaves 8, or 1024 kernel taps, or when the per-SVG work budget is exceeded at every resolution.
  • removed Colour fields accept only #RRGGBB: a missing #, 3- or 8-digit hex, + signs, a repeated #, trailing data or whitespace, and colour names return API-002 naming the field. Shape, container, table, barcode, watermark, and settings.defaults colours are now validated too, so values that used to render black are rejected.
  • improved Barcodes are encoded with xBarcode 2.0.0. Every documented format and alias is unchanged; some QR, Data Matrix, PDF417, MicroPDF417, Aztec, and Code 128 symbols use fewer codewords, never a larger symbol, and encode the same text.
  • removed Empty or whitespace-only barcode content returns API-002 on every element, as in table cells. Content over a format's own capacity returns API-002: code39, code93, codabar, and msi hold at most 256 data characters, Code 128 at most 1536.
  • removed Non-GS1 Code 128 encodes ~1 and {FNC1} sequences as literal text, and UPC-E number system 1 is rejected.
  • added Bearer bars also draw on gtin8, gtin12, gtin13, sscc, and upus10, and UPC composites accept +2 and +5 add-ons.
  • fixed Malformed convolution kernels in SVG filters no longer stop the renderer.
  • fixed Native and Wasmer Template Render accept template_id values of ASCII letters, digits, '.', '_' and '-' only, excluding '.' and '..'.
  • added Error bodies gain an optional capability field that names the capability id a request needs when the target build does not compile or enable it: data.projection or layout.flow_document, with API-002, including a Template Render runtime that requires one. Every other error keeps exactly error, code, message, and req_id.
  • added POST /health reports catalog_version, the version of the capability id vocabulary, beside enabled_capabilities; Native servers send it as the X-GPDF-Catalog-Version header and keep the body OK, and the Wasmer package does from its next release.
  • added Capability catalog version 2 adds render.svg: SVG images, emoji, and OpenType SVG glyphs in PDF output. Every deployed gPdf build that renders PDFs compiles it, so a deployment that reports catalog_version 2 lists render.svg in enabled_capabilities and X-GPDF-Enabled-Capabilities. Requests, SVG and emoji rendering, codes, and messages are unchanged.
  • fixed E-invoice object delivery: once a job is stored, its settings.e_invoice.job_id names at most one job across the eu and global residency regions. A repeat from the same client returns the stored job without rendering or billing again, whatever data_residency it names; another client's job_id and an expired job return API-002.
  • improved The API reference lists every new limit and the colour format; OpenAPI, the Agent Prompt, and the llms feeds state the table, barcode, image, and SVG limits and the #RRGGBB rule.

What’s new

This release turns resource use that depended on input size into documented, deterministic limits. Each limit is checked before gPdf lays out, decodes, meshes, or rasterizes the input it bounds, and a violation returns an error that names the limit instead of exhausting memory or CPU.

Tables and barcodes

Table spans may not extend past the last row or column. One table holds at most 65536 grid cells, counted as body rows plus shown header rows times columns, and all tables in one request or Template batch hold at most 262144. Barcode content holds at most 4096 UTF-8 bytes, format and shape names at most 64 bytes, bearer bars that are drawn at most 64 modules, and the encoded symbol at most 1048576 modules (65536 with circle modules, except MaxiCode). These violations return API-002.

Raster and SVG images

PNG and WebP images are checked from their headers before decoding: at most 8192 pixels per side, 4194304 pixels, and 16777216 decoded bytes, with every WebP frame counted. Larger images, and WebP files whose chunks extend past the image data, return API-007. JPEG images are embedded without decoding and have no pixel limit.

SVG images load only embedded data: images, which follow the same limits; other references are ignored. Compressed SVG (svgz) is rejected. Filters are rasterized at a lower resolution when their estimated cost would exceed the budget, and return API-002 beyond 1048576 pixels per region, 64 primitives, numOctaves 8, or 1024 convolution kernel taps. The same limits apply to nested SVG images, patterns, masks, and clip paths rendered inside a filtered group, and the filtered groups of one SVG share its work budget. Work that does not shrink with the resolution, such as a raster image rendered many times inside a filtered group, returns API-002 when it exceeds that budget at every resolution.

Colour values

Every colour in a request is written as #RRGGBB: # followed by six hexadecimal digits, in either case. Other forms, such as 2563EB without #, #fff, #2563EB80, red, or rgb(), return API-002 with an error that names the field. Shape, container, table, barcode, watermark, and settings.defaults colours used to be drawn black when they could not be parsed; they are now rejected like every other colour field. Use the matching opacity field for transparency.

Barcodes

Barcodes are encoded with xBarcode 2.0.0. Every documented format value and alias is unchanged. Some symbols use fewer codewords for the same content and never a larger symbol: QR tracking numbers and GS1 element strings may get a different module pattern or a smaller version, and Data Matrix, PDF417, MicroPDF417, Aztec, and Code 128 text may encode more compactly. Full-range Aztec symbols now draw the centre row and column of the reference grid, and Micro QR encodes Latin-1 characters as ISO-8859-1. The encoded text of every symbol is unchanged.

Barcode content must contain a non-whitespace character on every element, as in table cells, and content over a format’s own capacity returns API-002 instead of API-501. Non-GS1 Code 128 encodes ~1 and {FNC1} sequences as literal text. The API reference changelog lists every change.

Capability errors and discovery

When a request needs data.projection or layout.flow_document and the target build does not compile or enable it, the error body now names the capability in an optional capability field. The code, message, and HTTP status are unchanged, and every other error body keeps exactly error, code, message, and req_id. POST /health also reports catalog_version, the version of the capability id vocabulary, beside enabled_capabilities; Native servers send it as the X-GPDF-Catalog-Version header, and the Wasmer package does from its next release. Read the advertised ids as a set. See capability discovery.

Compatibility

Well-formed requests within these limits render as before, except that costly SVG filters, such as large feMorphology radii, may now use a lower raster resolution, and some barcode symbols, such as QR tracking numbers, may use a different module pattern that decodes to the same text. Requests beyond the limits now fail with API-002 or API-007; split large tables, shorten barcode content, downscale images, or simplify SVG artwork. Requests with a colour that is not #RRGGBB now fail with API-002; write the colour as # and six hex digits. The capability error field and the health catalog_version are additive; clients that ignore unknown fields are unaffected. Barcodes with empty content, or content over the capacity of their format, now fail with API-002. The exact values are listed in the API reference limits.