I am trying to display a small PDF inside a webpage with the ability to open the PDF full screen. I am exploring PDF.js Express Viewer as an alternative to an undocumented Google viewer that is not 100% reliable. The Getting Started instructions do not state where the code should be extracted. The initial index.html code suggests that the PFD.js code is installed in the document root, but the code to instantiate the viewer looks for it in a WebViewer folder. I got the code to load the default PDF - the iframe is the width of the screen but only uses the top 1/6 of the screen (first page of PDF displayed at 15%), different from the screenshot. Adjusting the width/height in the
I freely admit that my JavaScript knowledge is virtually zero. I did not go through the npm install/start since I have a web server where I can install and test code.