Thanks for asking - I wrote the book using LibreOffice and used the Table of Contents, Indexing, and cross-referencing functionality.
In actual fact: - I wrote the first half of the page in Apple pages - I couldn't cross-reference so I moved to Word for Mac - This worked well, but I couldn't export the PDF with internal links - I converted to LibreOffice - This exported with external links
To create the sample, I then opened in Preview, deleted all the internal pages, dragged in the "call to action" page, then saved.
LibreOffice worked well for the most part, although there were a few little funky things that didn't work how I wanted them to (e.g. justified text puts extra spacing between letters as well as words. Also, indexing a word sometimes makes the alignment go all screwy, for some unknown reason)