Skip to content
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

How do I view a PDF file located in Azure Blob Storage #10870

Closed
teemer22 opened this issue May 30, 2019 · 3 comments
Closed

How do I view a PDF file located in Azure Blob Storage #10870

teemer22 opened this issue May 30, 2019 · 3 comments

Comments

@teemer22
Copy link

Hello,

I have a MVC application here in my local that requires to view PDF files uploaded in Azure Blob storage. my PDF JS build and web folders are located in my application directory here in my dev machine. I am encountering error "file origin does not match viewer's". I can successfully view if the PDF is in the same folder as my JS files locally. How can I view the PDF uploaded in Azure?

URL: https://checkmateinvoice.blob.core.windows.net/invoices/helloworld.pdf

1

2

@Snuffleupagus
Copy link
Collaborator

Please refer to PR #6916.

@teemer22
Copy link
Author

Please refer to PR #6916.

Hi Jonas and Tim, sorry I am new to javascript. I have tried to copy the codes from https://github.com/mozilla/pdf.js/pull/6916/files in my file viewer.js. Still no display of the PDF file and no error message shown.

@Snuffleupagus
Copy link
Collaborator

Please keep in mind that this is, first and foremost, a bug tracker and not a general support forum.

Furthermore, without any of the information requested in ISSUE_TEMPLATE.md provided, nor a working example as outlined in CONTRIBUTING.md it's basically impossible for anyone to help:

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us on the IRC channel -- keep in mind that just code snippets won't help us troubleshoot the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants