Runs on 2026-11-25, Docker on an arm64 Mac, python:3.13-slim (Debian 13.8), Python 3.13.

docker images: python:3.13-slim 204 MB; + docx2pdf and requests 221 MB; + LibreOffice (Dockerfile-libreoffice) 743 MB;
+ the three font packages 755 MB.
apt, LibreOffice: 137 newly installed, Need to get 110 MB of archives, After this operation, 383 MB of additional disk space.
apt, fonts: 3 newly installed, Need to get 2333 kB, 7506 kB of additional disk space.

=== run_docx2pdf.py (image built from Dockerfile-docx2pdf) ===
convert() raised: NotImplementedError docx2pdf is not implemented for linux as it requires Microsoft Word to be installed
CLI exit 1 | stderr: NotImplementedError: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed
pdf written: False False

=== run_lo.py plain (no extra fonts) ===
version: LibreOffice 25.2.3.2 520(Build:2)
quarterly-report: first run 2.04s rc=0 Maximum resident set size (kbytes): 217880
quarterly-report: warm runs 0.38, 0.37, 0.33 s (median 0.37)
supply-agreement-draft: first run 0.28s rc=0 Maximum resident set size (kbytes): 177020
supply-agreement-draft: warm runs 0.31, 0.31, 0.30 s (median 0.31)
field-service-handbook: first run 0.34s rc=0 Maximum resident set size (kbytes): 178092
field-service-handbook: warm runs 0.33, 0.25, 0.27 s (median 0.27)
4 at once, shared profile: 1.10s, exit codes [1, 0, 0, 1], PDFs written 2: ['copy-1.pdf', 'copy-2.pdf']
   stderr of all four, the two that worked included: Warning: failed to launch javaldx - java may not function correctly
4 at once, own profiles: 3.48s, PDFs written 4, errors []
convert_lo.docx_to_pdf one file: 1.43s

=== run_lo.py fonts (fonts-liberation, fonts-crosextra-carlito, fonts-crosextra-caladea added) ===
quarterly-report: first run 1.41s rc=0 Maximum resident set size (kbytes): 217952
quarterly-report: warm runs 0.44, 0.42, 0.43 s (median 0.43)
supply-agreement-draft: first run 0.25s rc=0 Maximum resident set size (kbytes): 178004
supply-agreement-draft: warm runs 0.32, 0.26, 0.27 s (median 0.27)
field-service-handbook: first run 0.28s rc=0 Maximum resident set size (kbytes): 178408
field-service-handbook: warm runs 0.31, 0.33, 0.29 s (median 0.31)
4 at once, shared profile: 1.20s, exit codes [1, 0, 1, 0], PDFs written 2: ['copy-1.pdf', 'copy-3.pdf']
4 at once, own profiles: 1.57s, PDFs written 4, errors []
convert_lo.docx_to_pdf one file: 0.88s

=== run_api.py (our API in a local container: these times have no internet in them) ===
quarterly-report: 0.49, 0.09, 0.09, 0.08 s (median 0.09)
supply-agreement-draft: 0.11, 0.03, 0.03, 0.06 s (median 0.04)
field-service-handbook: 0.04, 0.06, 0.03, 0.03 s (median 0.04)
handbook with UpdateFields=true written
PageRange: 400 PageRange is not supported yet for DOCX → PDF

=== run_usage.py (the usage lines on the page) ===
['draft-1.docx', 'draft-1.pdf', 'draft-2.docx', 'draft-2.pdf', 'draft-3.docx', 'draft-3.pdf'] 82830 45899
RuntimeError: 400 PageRange is not supported yet for DOCX → PDF

=== compare.py ===
api       quarterly-report: 3 pages; Liberation Serif and Sans, plus DejaVu Sans; 5 bookmarks
api       supply-agreement-draft: 1 page; Carlito, Caladea; phrases in text: eighteen months, within 45; author 'Reviewer A'
api       field-service-handbook: 6 pages; 14 bookmarks; contents as saved (1 Before you start ... 1, 2 Setup ... 2)
api       field-service-handbook with UpdateFields=true: contents rebuilt (1 Before you start ... 2, 2 Installing the unit ... 3)
lo-plain  quarterly-report: 3 pages; DejaVu Serif and Sans (and OpenSymbol), no Liberation; table headers "Shipme/nts", "Septemb/er"; site notes on page 2
lo-plain  supply-agreement-draft: 1 page; DejaVu Serif; phrases in text: The buyer may pay by check, twelve, eighteen months
lo-plain  field-service-handbook: 6 pages; contents as saved
lo-fonts  quarterly-report: 3 pages; Liberation Serif and Sans; same page breaks as the API
lo-fonts  supply-agreement-draft: 1 page; Carlito, Caladea; phrases in text: The buyer may pay by check, twelve, eighteen months
          (tracked changes printed as markup: deletions struck through, insertions underlined, in color, with change bars)
lo-fonts  field-service-handbook: 6 pages; contents as saved
The contract PDFs had no annotations, and the comment text and the hidden sentence were in none of them. All three kept the Author property 'Reviewer A'.

Local container vs hosted API: the contract's PDF was byte for byte the PDF the hosted API returned on
2026-11-24; the report's differed only in its creation and modification dates and its file id.
