Print.js: Can I pass Request Headers to obtain pdf by URL?

Created on 19 Feb 2019  Â·  2Comments  Â·  Source: crabbly/Print.js

Hello, I need to pass request header (authentication) to open a pdf file by url, exist a way to do this? Thank you

Most helpful comment

Hi @lyanetgp, it's better to do these things outside the library. What I mean is that we could retrieve the file first, save it in local memory, and then pass it to the library.
Take a look at this: https://github.com/crabbly/Print.js/issues/160

All 2 comments

Hi @lyanetgp, it's better to do these things outside the library. What I mean is that we could retrieve the file first, save it in local memory, and then pass it to the library.
Take a look at this: https://github.com/crabbly/Print.js/issues/160

That is what I ended up doing. Works like a charm. Thank you very much for
your answer, and advice. I appreciate it.

El El mié, feb. 20, 2019 a las 10:48 p. m., Rodrigo Vieira <
[email protected]> escribió:

Hi @lyanetgp https://github.com/lyanetgp, it's better to do these
things outside the library. What I mean is that we could retrieve the file
first, save it in local memory, and then pass it to the library.
Take a look at this: #160 https://github.com/crabbly/Print.js/issues/160

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/crabbly/Print.js/issues/281#issuecomment-465851330,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEzDv1NWpspZzEaIYIx_qc27Ek7eloY-ks5vPhcJgaJpZM4bD6Ca
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r3wt picture r3wt  Â·  8Comments

zhuyinjing picture zhuyinjing  Â·  7Comments

johnknoop picture johnknoop  Â·  5Comments

Aloogy picture Aloogy  Â·  7Comments

PabloSzx picture PabloSzx  Â·  5Comments