Files
Calixte Denizet f16437faec Generate non-embedded standard fonts with Hellbox
Replace bundled font programs with glyph data. Generate replacement fonts
with PDF widths and substitutes for missing XFA fonts. Use a JavaScript
fallback when WASM is disabled or fails to load.
2026-11-03 18:03:47 +01:00
..
…

Overview

Example to demonstrate converting a PDF file to a PNG image using the PDF.js library.

Getting started

Install the dependencies and build the PDF.js library:

$ npm install
$ gulp dist-install

Run the example to convert the first page of a PDF file to a PNG image:

$ cd examples/node/pdf2png
$ node pdf2png.mjs