how can print file via Blob()
See original GitHub issueHello AS is see most of the Doc is about how to print a file by its url. But as this issue https://github.com/crabbly/Print.js/issues/316 I decided to download file via blob and then print the file. here is what I have done :
const file = new Blob([responses.data], { type: "application/pdf" });
printJS(fille);
but I got the error.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Print PDF from BLOB - javascript - Stack Overflow
I have already solve this using: req.onload = function (event) { var blob ... Try the code below to make sure the .pdf...
Read more >Print PDF from Blob Using JavaScript | PSPDFKit SDK
Print PDFs from a Blob Using JavaScript. If you want to start printing a document loaded in a Blob , create an object...
Read more >pdf fetch and print via blob() - CodePen
1. fetch('https://media.readthedocs.org/pdf/flask-cors/latest/flask-cors.pdf').then(function(response) { ; 2. return response.blob(); ; 3. }).then(function(myBlob) ...
Read more >Blob - The Modern JavaScript Tutorial
We can make a Blob from a typed array using new Blob(...) constructor. We can get back ArrayBuffer from a Blob using blob.arrayBuffer()...
Read more >Blob.text() - Web APIs - MDN Web Docs
The FileReader method readAsText() is an older method that performs a similar function. It works on both Blob and File objects. There are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi there !
You need to pass an URL.
The open issue related to the filename control is actually #487.