It appears that Lua modules are completely ignored when using Download as PDF.
Whether that requires a change to Scribunto or a change to Special:Book, I don't know. At present the conversion of templates to Lua is causing the corresponding information to be lost in the PDF exports.
Version: master
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50178
https://bugzilla.wikimedia.org/show_bug.cgi?id=50750
https://bugzilla.wikimedia.org/show_bug.cgi?id=48052