Home  ›  Learn

Learn pdfnative

Eight short steps, in order, from installing the package to shipping a hundred-thousand-page document. Each one introduces exactly one idea and says what you should be able to do at the end of it.

About thirty minutes, start to finish. You need Node.js 22 or newer and nothing else — no account, no key, no service.

Already know what you want? The 26 reference guides are the shelf; this is the path.

  1. 1. Install pdfnative and make one PDF

    Ten lines, one file on disk. Nothing else.

  2. 2. A document is an array of blocks

    The one idea that makes the rest of the API obvious.

  3. 3. Tables that break across pages

    Headers repeat, rows wrap, and you do not manage any of it.

  4. 4. Headers, footers and page numbers

    The second argument, and four placeholders.

  5. 5. Text beyond Latin

    Why fonts must be registered, and how.

  6. 6. The same code in a browser

    One import change. No server involved.

  7. 7. When documents get large

    What streaming buys you, and its two constraints.

  8. 8. Where to go from here

    The map, now that the territory makes sense.

Never generated a PDF from code before?

Then start at step 1 and do not skip. The single thing that makes pdfnative click is in step 2: a document is an ordered array of blocks, and the library handles page geometry. Everything else follows from that.

Want to see output before you install anything?

The live editor on the homepage generates real PDFs in your browser, and the nine playgrounds cover charts, 22 writing systems, the full toolkit and more. Nothing is uploaded in any of them.

8 steps · about 30 min