Files from "Convert DOCX to PDF in PHP" on pdfconversionapi.com (tested 2026-11-27).

project/pdfconversionapi.php    The API code from the page (PHP's curl extension; set PDFCONVERSIONAPI_KEY).
project/laravel.php             The Laravel lines from the page.
project/libreoffice.php         The LibreOffice code from the page, with a profile per call.
run/                            What we ran. run/pdfconversionapi.php is the page's code with only the address changed,
                                to a local container of our API. bench.php times the API and LibreOffice;
                                routes-phpword.php runs PHPWord with Dompdf, mPDF or TCPDF; routes-office-converter.php
                                runs ncjoes/office-converter; routes-laravel.php runs the Laravel lines on illuminate/http.
run-all.sh                      Every run, in order. Its output is results.txt.
Dockerfile-php, Dockerfile-libreoffice   The images. Dockerfile-php installs each route's Composer packages into
                                /deps/<route>; built with --build-arg PHP=8.6 it is the PHP 8.6 image.
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, laravel, lo, office-converter, phpword-dompdf, phpword-mpdf, phpword-tcpdf6   Every PDF the runs wrote.
                                PHPWord with TCPDF 7.0.24 left an empty file for each document; those aren't included.

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