How can i pass html url with parameters in url parameter

I am using pdf.js viewer to embed a PDF in an iframe. For this I use:

"? file = <path-string>". This path is not the full path to the PDF file, but a URL with its own parameters. These native parameters were removed at runtime.

How to pass URL with parameters in the "file" parameter? Or: Is this another way to launch the viewer from a URL?

+3


source to share


1 answer


As stated here, https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#file , you need to encode your url with encodeURIComponent ();



0


source







All Articles