Files from "Convert DOCX to PDF in Node.js" on pdfconversionapi.com (tested 2026-11-26).

project/pdfconversionapi.mjs   The API code from the page (fetch and FormData, no packages; set PDFCONVERSIONAPI_KEY).
project/libreoffice.mjs        soffice with a profile per call, without a package (the page uses libreoffice-convert).
project/bench.mjs              The test runs: node bench.mjs api | usage | lc | lo | mammoth | docxpdf.
                               We ran the API runs against a local container of our API, with only the address changed.
Dockerfile-libreoffice, Dockerfile-puppeteer   The two images (node:lts-slim plus LibreOffice, or plus a browser).
compare.py, compare_images.py  How we read the PDFs (PyMuPDF) and made the picture on the page.
results.txt                    What each run printed.
inputs/                        The three Word files (CC0, from our other guides).
outputs/api, lc, lo, mammoth   Every PDF the runs wrote: our API, libreoffice-convert, soffice without a package,
                               mammoth + Puppeteer (with mammoth's HTML).

The sample files and these scripts are released under CC0 1.0. The npm packages are their authors' work under their
own licenses.
