Have you put this entire code inside the HTML element of bubble.io. Because when I am doing that, it shows blank.
When I am putting the code that is there within the body ie div and script, it loads and shows the pdf and the viewer for fraction of second and then disappears( both the pdf and the viewer disappear)