Comments (3)
I think a related issue is an error I'm getting. Because the blob generates something in lieu of a filename, there is no extension. The error I get is:
Resource interpreted as Document but transferred with MIME type application/pdf: "blob:https://pharmacyinformatics.local/91344f58-34a3-4ca9-89e5-57ed4f938e6b"
from app-extension-qpdfviewer.
Unfortunately, the HTML5 PDF Viewer engine that comes with your browser, uses either object or iframe tag to run in a sandbox. Because of this, there is no way to access.
I agree it would be a nice feature.
However, I did find this and if you try it and it works, please let me know:
const FILE_NAME = 'myfile.pdf';
const file_header = ';headers=filename';
fetch('https:your-url/myfile.pdf?dl=0').then(r => r.blob())
.then(blob=>{
const f = new FileReader();
f.onload = () => myPdfViewer.src = f.result.replace(';', file_header + encodeURIComponent(FILE_NAME) + ';');
f.readAsDataURL(blob);
});
from app-extension-qpdfviewer.
Closing for no response.
from app-extension-qpdfviewer.
Related Issues (20)
- quasar/qpdfviewer is not compatible with @quasar/app v3.0.3 HOT 1
- Do it supports pdf document annotation? HOT 1
- Yarn package 2.0.0-alpha.3 points to old build HOT 6
- In mobile qpdfviewer displays only the first page without scrolling HOT 4
- extendWebpack error in app-vite using @next HOT 3
- QPdfviewer HOT 1
- dev working fine after build spa and publishing to server broke HOT 1
- Issue when pdfjs is not stored in server root HOT 1
- Need a slot for request header HOT 1
- can i use this in vue3? HOT 2
- Quasar dev fails HOT 1
- Problem with PWA HOT 2
- Issues with Safari and Firefox on macOS
- Could you tell me how to get a certain page? HOT 2
- Tests found that PDF files on the mobile side could not be previewed properly HOT 4
- Newbie question: pdf 404- Nothing there HOT 2
- Error loading a pdf using pdfjs but working using html5 HOT 2
- Not display content when source is blob on ipad. HOT 2
- Extension(@quasar/qpdfviewer): is not compatible with @quasar/app v3.0.0-beta.25 HOT 8
- Package install of QPdfviewer v2.0.0 Alpha 1 not matching next branch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-extension-qpdfviewer.