How it works

Print it, check it, and keep nothing that fails.

Scriptorium turns a PubMark source into a PDF and then tries to find a reason not to hand it over. Here is each step, what each check proves and does not prove, what happens when one fails, and what the numbers measured.

Illustration: a quiet bookbinder's workshop at night, a heavy wooden bench with a small iron press and a stack of blank folded sheets, a row of blank sheets hung to dry on a cord, and one amber lamp hanging low over the bench.
Stages

From a source to a checked PDF

The default template, Renkara Document, takes any PubMark document. Four stages turn it into a file you can use.

A tagging pass repairs the shapes that PDF/UA-1 would otherwise fail: loose list items, a list item that holds a listing, a link that holds code, a table with only a head. Each of those shapes has a test that runs veraPDF on it. The repairs are counted in the structural receipt, so you can see how many a document needed.

  1. Read

    Lectern's own renderer, run in place and never copied, turns the source into the page that sits on the shelf. A source it refuses stops here: one with an unresolved canonical placeholder, or a page that references external images.

  2. Print

    One shared print sheet lays the page out: the cover, a linked contents page, running headers and footers, wrapping tables, and landscape pages for wide ones. WeasyPrint writes the file as PDF/UA-1.

  3. Check the document

    The structural check proves the file is the document, and writes a receipt.

  4. Check PDF/UA-1

    veraPDF tests the file against the PDF/UA-1 profile and writes its own summary. Only a file that passes both is returned.

Checks

Two checks, and what each one proves

The two checks look at different things, so a file has to pass both.

Neither check is a claim of conformance beyond what its report says. The engine's own wording says the same about itself, and no document, receipt, or page it produces claims more than the veraPDF report behind it.

What each check looks at
CheckWhat it provesWhat it does not prove
Structural checkThe title, author, and language are right and the file is tagged. Every section has a bookmark and every font is embedded. No text runs past the right margin, the title is on the cover, no heading skips a level, and an external document carries no internal matter.That a page reads well, that its colors have enough contrast, or that a screen reader reads it in a sensible order.
veraPDF, PDF/UA-1The file passes the rules of the PDF/UA-1 profile as veraPDF implements them: tags, structure, language, titles, and alternative text where the profile requires it.That the file works for a person with a screen reader. A passing profile is a machine check, and it does not replace a person's test.
Failure

When a check fails

A caller never gets a PDF that failed. How that shows depends on how it called.

Skipping the checks is possible in the library only, by passing <code>validate=False</code> on purpose, and the result is labeled unvalidated. A missing veraPDF is a failure of the run, never a skipped check.

When a check fails
LibraryRaises an error that carries both receipts, and the file is removed from the output folder.
CommandExits with a failure and prints what failed. <code>scriptorium pdf</code> writes nothing.
Local serviceAnswers with a 422 error, the receipts, and no PDF in the response.
Options

Print options live in the document

A document sets its print options in its front matter, under the Scriptorium extension. All are optional.

No document carries its own stylesheet. A layout fix goes into the shared print sheet with a test, so it reaches every document.

Print options
KeyDefaultEffect
audienceinternalAn external audience drops the internal eyebrow, chips, source path, colophon, and revision log.
header_labelRENKARAThe running header's left text.
footerTitle and dateThe running footer's left text.
cover_lineRenkara and an internal mark, or Renkara and the date when externalThe line at the foot of the cover.
authorRenkaraThe PDF's author.
Templates

Two templates

Templates are named and registered in one place, so a brand change lands there only.

A template that is defined but not ready is refused, never approximated. Vantalect's own renderer is unchanged and still makes its published reports.

Two templates
renkara-documentReady, and the default for the command. Any PubMark document, in the Renkara Document brand, with its page made by Lectern's renderer.
vantalect-sampleReady. Vantalect's sample and engagement reports, through the engine extracted from Vantalect's renderer. A source without the report's front matter is refused.
Numbers

What the numbers measured

Two runs on November 22, 2026 are the measure of the engine. Each says what it did not cover.

How the 875 was reached: a clean run of all 880 with a near-final print sheet passed 855. The 25 that did not were rerun with the final sheet and 20 passed. The 855 were not rerun after that one change to the sheet; an earlier full run with the earlier rule had passed the same documents. veraPDF passed every PDF that was built, including the four withheld ones: the withholding is the structural check's margin rule.

The golden rerun compares the extracted engine with Vantalect's original on published reports: all 93 matched, with the HTML byte for byte the same and each PDF's page count, text, tags, and receipts in agreement. PDF bytes differ for all 93 because a PDF carries build-time details, which the comparison records and does not gate. Vantalect's own nine render test files, run against the extracted engine, gave 763 passed and 4 skipped, with none failing.

Not tested: no screen reader, no hand walk of reading order, and no color-contrast measurement on any PDF. A person looked at the pages of one document and at contact sheets of a wide-table document; the rest were checked by machine only.

The corpus sweep: 880 documents through the whole gate
OutcomeCountWhy
Passed both checks875About 21,000 pages in all.
Withheld4Two documents with a diagram that overflows its page, and two with a long inline code path that hangs a few points into the margin. These are faults in the template that are still open.
Refused1Lectern's renderer refuses a page that references external images. A correct refusal.
Contact

Questions about this tool?

Write to Renkara Media Group and a person will answer.