New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read PDFs from URL option #25
Comments
Sire, @jzillmann I love contributing to this issue. But I haven't made any contribution to any repository till now, But I'm keen to learn. Could you please be able to help me out a little? |
Hey @darkcheftar, great!
|
Thank you, Sire @jzillmann I will check into it and let you know what I'm up to soon! |
Sire @jzillmann In solving #25 issue in order to test proof of concept that on passing a URL to parsePdf function it loads pdf. I replaced 'Example.pdf' with This URL as shown below. And Clicked the option load Example. export async function loadExample(progressListener: ProgressListenFunction): Promise<any> {
- return parsePdf('ExamplePdf.pdf', progressListener);
+ return parsePdf('https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', progressListener);
} please help me with this. |
Ok, so the CORS thingy... 😞 Not sure but I guess the only reliable way to enable this feature is to use a proxy. See mozilla/pdf.js#1000 (comment) |
Sure, I will definitely try checking this😄. Thanks for the support. |
sire @jzillmann please check #27 I tried to fix #25 Let me know if there are any suggestions or changes. |
Thanks @darkcheftar looks good, added some minor comments on the PR! |
Thanks, sire @jzillmann. I hope you are safe and sound. |
Got it, Sire! |
Changes are in, big thanks! 👏😃 |
Hey @jzillmann, |
Currently we can :
Example.pdf
Would be nice to have a 3rd option where one can enter a URL.
PDF.js
already can source from a URL (we're doing it for (2) already), so this should be purely UI.The text was updated successfully, but these errors were encountered: