Download PDFJS prebuilt version from https://mozilla.github.io/pdf.js/getting_started/#download
Unzip the file to 'pdfjs' folder and move it to the BookStack app 'public' folder. Ensure both 'build' and 'web' folders and its files are there.
Copy and paste the following code to Custom HTML Head Content field on Settings page: