javascript : how to display and scroll a remote pdf, on a browser non dependant way
12:08 27 Nov 2025

I wish to display in an html page and control its scrolling, the image of a pdf hosted on a server.

I am currently using Mozilla’s pdf.js scripts, which work well for pdf files stored on my computer.

On the other hand, I have difficulties displaying a remote pdf whose URL I know.

I have not managed to find any (operational) examples of this use which, a priori, must not be original.

Thank you for providing me with such examples or telling me a way to achieve it.

(please do not offer me iframe, embed or object solutions whose behaviors/displays are different depending on the browsers, IE, Safari, Edge Chrome, Firefox...)

Best regards.

javascript html css pdf scroll