VALIDPDF417

Getting started

From zero to a printed symbol in about four minutes.

1. Get a key

Keys are issued by hand over Telegram so we can size your quota correctly. Message @VALIDPDF417 with your use case and expected monthly volume.

Note Keys are issued on Telegram, usually within the hour. The first barcode costs $2.00 on the package ladder, and every plan carries the scan guarantee: if it will not scan on a hardware scanner, it is refunded.

2. Store the key

Keys are bearer tokens. Put them in an environment variable, never in source control.

bash
export PDF417_KEY="vpdf_live_..."

3. Encode

POST your fields to /api/v1/aamva. The response body is the image itself.

bash
curl -s https://validpdf417.com/api/v1/aamva \
  -H "Authorization: Bearer $PDF417_KEY" \
  -H "Content-Type: application/json" \
  -d '{"state":"CA","eclevel":5,"format":"png","dpi":600,
       "fields":{"DAQ":"A1234567","DCS":"SAMPLE","DAC":"JORDAN",
                 "DBB":"19900314","DBA":"20300115","DBC":"1",
                 "DAG":"1234 SAMPLE ST","DAI":"BEVERLY HILLS","DAK":"90210",
                 "DCF":"DD123456789012","DCK":"123456789012","DCA":"C",
                 "DCB":"NONE","DCD":"NONE","DDA":"F","DDB":"20200101",
                 "DDD":"1","DDE":"N","DDF":"N","DDG":"N"}}' \
  -o dl.png

4. Verify

Always decode a sample before you commit a print run. EC level 5 tolerates roughly 20% symbol damage; it does not tolerate a bad DPI setting.

ParameterTypeDefault
state2-letter coderequired
fieldsobjectrequired
eclevel0–85
columns1–30derived for 3:1
formatpng · svgpng
dpi72–1200600

What to check after the first call

Open the PNG, confirm it is a PDF417 symbol and not an error page saved with a .png extension, then decode it. Byte 0 must be 0x40, bytes 1 to 3 must be 0A 1E 0D, and bytes 4 to 8 must be ANSI . If those are right, the header is right and the remaining checks are field values and print settings.

Keep the request body next to the output. The payload is the audit trail: if a card is questioned later, the decoded string can be compared with the body that produced it. A PNG alone cannot prove which values were encoded without decoding it first.

Print tip Below 300 DPI, module edges blur and scanners start failing at level 2. Use 600 DPI for card stock.

Next

Generate barcode now