3

I use the pdf.js viewer to embed a PDF in an iframe. To do this, I use the:

" ?file= < path-string> " parameter. This path isn't a full path to an PDF file but a URL with own parameters. This own parameters were removed on execution.

How can I pass a URL with parameters in the parameter "file"? Or: Is it another way to run the viewer with an URL?

0

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.