Skip to content
getnextpdf.com

Connect cookbook

NextPDF Connect opens the NextPDF engine to remote callers and artificial intelligence (AI) systems over the Model Context Protocol (MCP), a Representational State Transfer (REST) API, and a gRPC service. The Connect cookbook gathers the task recipes for that surface, and this page is its index. It records each recipe slug, the tier it belongs to, and the transport boundary that applies. Each recipe page is authored in the nextpdf/server repository under docs/public/, owns its own claims, and is pulled into this site by the aggregator with its source provenance intact.

To see the contract every Connect recipe follows, read Recipe conventions. For the full ecosystem integration landscape, read the Integration cookbook.

A Connect deployment computes its tool set at boot; it is not fixed in advance. The server’s tool registry always registers the core tools. It then probes for the Pro and Enterprise providers with class_exists(), and registers their tools only when nextpdf/premium is installed alongside the server. A recipe that depends on a Pro or Enterprise tool runs only on a deployment where that tool resolved. On an open-source-only install, the tool is absent, and the call returns an unknown-tool error instead of degrading silently. Each recipe states its tier, and this index groups recipes by tier so you can see what a deployment supports at a glance.

The total tool count is a runtime property of the deployment. The catalog of record is the server’s own tool catalog, which each recipe links.

You invoke every recipe the same way over all three transports: an MCP tools/call, the REST tool endpoint, or the gRPC service. They share one tool executor. Recipes that reach a remote service over Hypertext Transfer Protocol (HTTP) treat a transport failure and a non-success HTTP status as separate cases. A PSR-18 client raises a typed client exception only when it cannot send the request at all, as described in PSR-18 §4. A 4xx or 5xx response is different. It is a normal return value that the caller inspects, not an exception, as described in PSR-18 §4.

Each recipe lives at /cookbook/connect/<recipe>/. The table records the slug, the tier the recipe is read under, and a one-line scope. The recipe pages are authored in the nextpdf/server repository’s docs/public/ tree and publish into this site through the aggregator.

RecipeTierScope
hello-worldCoreFirst Connect call: create, add content, output
multi-pageCoreMulti-page document over Connect
image-embeddingCoreEmbed an image over Connect
html-tableCoreRender an HTML table over Connect
font-typographyCoreFonts and typography over Connect
exception-awareCoreException-aware tool calls
environment-diagnosticsCoreEnvironment diagnostics tools
layout-inspectionCoreInspect layout without rendering
worker-safeCoreWorker-safe batch usage
batch-pdf-generation-with-progress-trackingCoreBatch-generate PDFs with async progress tracking
rest-invoice-end-to-endCoreOne invoice over REST: submit, poll, download, verify locally
output-approvalCoreThe human-in-the-loop output gate
mcp-agent-sessionCoreA captured MCP agent session with the approval round trip
event-hooksCoreLifecycle event hooks
fill-pdf-formProFill a PDF form over Connect
extract-text-contentProExtract text content over Connect
digital-signatureProSign a PDF (PAdES B-B and B-T) over Connect
accessibility-checkProPDF/UA accessibility check
pii-redactionEnterpriseRemove detected personal data from the text layer (destructive)
aria-tagged-pdfProMap ARIA landmark roles to tagged structure
figure-captionProAccessible Figure with a nested Caption
aria-noteref-patternProFootnote reference and body pattern
compliance-checkEnterpriseRun a named-standard check
forensic-analysisEnterpriseForensic analysis of a signed PDF
ltv-health-checkEnterpriseLTV health check (B-LT/B-LTA, Enterprise-only)
batch-complianceEnterpriseBatch standards check
ai-ready-certificationEnterpriseAI-readiness check (not a certification)
page-artifactsEnterpriseMark pagination chrome as artifacts
conformance-modeEnterpriseSelect a conformance mode (intended to conform; a validator decides)
cjk-vertical-writingEnterpriseCJK vertical writing metrics
opentelemetryCoreObserve Connect with OpenTelemetry
tagged-pdf-tutorialCoreTagged PDF tutorial (intended to conform; veraPDF decides)

The slug expresses the recipe’s intent in kebab-case with a single trailing slash: no numeric prefix, no version number, and no file extension. A recipe slug does not change after publication, and a moved slug carries a redirect.

Several recipes touch standards (PDF/UA-2, PDF/A-4, PAdES). The Connect cookbook treats support for a standard as support, never as conformance or certification. The engine produces output intended to conform, and an independent validator (for example veraPDF) determines conformance. The AI-readiness recipe is a readiness check, not a certification. The LTV recipe’s long-term-validation material is an Enterprise-only capability. Its presence in a document is a capability the document carries, not a guarantee of indefinite signature validity. Each affected recipe restates these boundaries in full. This index only notes that they exist and points to where they are derived, instead of re-deriving them here.