Dual-Brain PDFs: Replacing Brittle OCR & Expensive Vision LLMs with 0ms Embedded JSON-LD
Why convert structured JSON into a PDF only for the recipient to run error-prone OCR to turn it back into JSON? Learn how Tailprint Dual-Brain PDFs embed lossless JSON-LD inside every PDF.
Think about the absurdity of modern B2B document workflows: Company A has clean, structured JSON in their database (invoice line items, SKU codes, tax rates, IBANs). They render that JSON into a visual PDF and email it to Company B. Company B then pays for an OCR pipeline or Vision LLM to look at the pixels of the PDF and guess what the original JSON was.
🧬 The Dual-Brain Standard
Tailprint's Dual-Brain PDF™ architecture (ai_ready: true) gives every PDF two brains: a pixel-perfect vector layout for human eyes, and a lossless, cryptographically hashed tailprint-manifest.json embedded directly inside the PDF's /Names/EmbeddedFiles catalog for instant 0ms machine extraction via POST /v1/pdf/extract.
How Dual-Brain PDFs Work
Whenever you render a document using a hosted or custom template_id, or whenever you pass ai_ready: true and embed_data: { ... } on a raw HTML render, Tailprint automatically attaches tailprint-manifest.json into the PDF container:
// 1. Render a Dual-Brain PDF with embedded structured data
const renderRes = await fetch('https://tailprint.com/v1/render/pdf', {
method: 'POST',
headers: {
'Authorization': 'Bearer sec_live_...',
'Content-Type': 'application/json',
},
body: JSON.stringify({
html: '<div class="p-10"><h1>Purchase Order #PO-9941</h1>...</div>',
ai_ready: true,
embed_data: {
po_number: 'PO-9941',
currency: 'USD',
total_net: 48200.00,
cost_center: 'CC-ENGINEERING-04',
line_items: [
{ sku: 'SRV-H100-8X', qty: 2, unit_price: 24100.00 }
]
}
}),
});
Extracting the JSON in 0ms via POST /v1/pdf/extract
Any receiving system, AI agent, or ERP webhook can pass the PDF binary (base64 or URL) to POST /v1/pdf/extract and recover the exact JSON object in under a millisecond — with zero OCR errors and zero LLM token cost:
curl -X POST https://tailprint.com/v1/pdf/extract \
-H "Content-Type: application/json" \
-d '{"pdf": "https://cdn.yourdomain.com/po-9941.pdf"}'
Inspect Dual-Brain JSON in Your Browser
Drop any Tailprint PDF into our public verifier to inspect its embedded JSON-LD manifest in 0ms.
Ready to build with Tailprint?
Get 100 free vector PDF and image renders every month with zero credit card required.