Test files for "Table of contents not updating when converting Word to PDF"
https://pdfconversionapi.com/guides/toc-page-numbers-wrong-after-pdf
Tested 2026-11-05.

Word files
  field-service-handbook.docx       Contents saved out of date: an old heading name, eight
                                    entries missing, wrong page numbers; a cross-reference
                                    saved as "Error codes on page 4"; footer "Page 1 of 1".
  generated-report.docx             Contents field with only a placeholder line, as code that
                                    writes DOCX files can leave it.
  generated-report-updatefields-setting.docx
                                    The same file with Word's "update fields on open" setting.
  manual-headings.docx              Two headings typed as bold text, two with an outline level.

What the API returned (docx/to/pdf)
  field-service-handbook.pdf                          no options
  field-service-handbook-updatetableofcontents.pdf    UpdateTableOfContents=true
  generated-report.pdf                                no options
  generated-report-updatetableofcontents.pdf          UpdateTableOfContents=true
  manual-headings-updatetableofcontents.pdf           UpdateTableOfContents=true
  field-service-handbook-updatefields.docx            docx/to/docx with UpdateFields=true

How to rebuild and re-run
  python3 build_guides.py                       writes the .docx files again, byte for byte
  PDFCONVERSIONAPI_KEY=<your key> python3 measure.py
                                                converts them with https://api.pdfconversionapi.com
                                                (about 30 conversions), saves out/*.pdf and
                                                renders/*.png, and writes results.json. Needs
                                                Python 3 and PyMuPDF (pip install pymupdf).
  results.json                                  what our run on 2026-11-05 recorded

The documents were written by hand as WordprocessingML (see build_guides.py), not saved from
Word. Names, companies and numbers in them are invented. Released under CC0 1.0: use them for
anything.
