Documentation Index
Fetch the complete documentation index at: https://docs.doczilla.app/llms.txt
Use this file to discover all available pages before exploring further.
Install
Download the Node.js SDK using your favorite package manager.
npm install @doczilla/node
Usage
// app/routes/api.pdf.ts -> /api/pdf
import { LoaderFunctionArgs } from '@remix-run/node'
import Doczilla from '@doczilla/node'
const doczilla = new Doczilla('doczilla-...')
export async function loader(args: LoaderFunctionArgs) {
const pdfBuffer = await doczilla.pdf.direct({
page: {
html: '<div>Your first Doczilla PDF</div>'
}
})
return new Response(pdfBuffer, {
headers: {
'Content-Type': 'application/pdf'
}
})
}
Learn more
Examples
Different API endpoint types