pdf Card

PDF Cards

A pdf card is a document whose text has been extracted — the rendered markdown is the card body, and the original bytes stay attached beside it. It is what bbx scan-import writes for a scanned PDF that already carries a text layer (a scanner's own OCR, or a born-digital PDF).

Where the bytes live

Everything is inside the card's own attach scope, so refs are attach/…:

The attached source file is preserved byte-for-byte when pages and figures are generated again. Reanalysis may replace generated AVIF files with WebP files, and existing AVIF attachments do not need conversion just to use WebP for new output. A direct link to a generated image filename can become stale. For a durable page link, link to the PDF card with ?page=N (one-based page number), not directly to a generated page image. Read the attached original when you need its exact bytes or appearance; do not assume every vision provider accepts every attached image format directly.

Frontmatter

Body

The rendered markdown of the document — headings, paragraphs, and tables as markdown tables. Figures appear as inline image references into the attach scope. Treat it as a faithful-but-lossy view: it is the right thing to read, search, and quote, and the original plus the page renders are there when it is not enough.

The contains: field

Give this card a one-sentence contains: — the prime retrieval field for bbx search and listings. How to write a good one (carry the information when it's concise, never a list of parts, under 200 characters) is in the agent guide's ABOUT_CARDS section.