PDFCraft
By language

HTML to PDF in your language

One POST and a PDF comes back, so any HTTP client will do. These pages carry the version written the way that language is normally written, and the trap it sets — which is usually reading a binary response as text.

Official clients

Three languages have a published client. Each has no dependencies of its own, retries the failures worth retrying and none of the others, and turns the API’s error envelope into a typed error you can branch on. All three are generated against the same contract the API validates requests with, so their types cannot drift from the server.

LanguageInstallRegistry
Node.jsnpm install @pdfcraft-dev/pdfnpm
Pythonpip install pdfcraftPyPI
Gogo get github.com/igaurav-dev/pdfcraft-gopkg.go.dev
TypeScriptnpm install @pdfcraft-dev/pdfnpm

Every language

The other nine pages show raw HTTP, because in those languages that genuinely is the best answer — and it is a perfectly good answer in the three above too.