Appears to be a bug with gnome desktop icons.
Rename folder /usr/share/ gnome-shell/ extensions/ desktop- icons@csoriano and restart.
Load the document, all pages after last page loaded, hit F12, paste the javascript at the console window and press enter: let jspdf = docu...