Creating blob from pdf file
See original GitHub issuevar doc = new jsPDF(); doc.text(20,20, ‘Hello’);
var blob = new Blob([doc], {type: ‘application/pdf’});
I tried to create a blob from jsPDF object to include it into a zip file by using jsZIP. However, that method did not work.
Is there a way to get the content of the doc
object to use it with blob?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
Properly Create and Serve PDF Blob via HTML5 File and URL ...
done(function(data){ var file = new Blob([data], {type:'application/pdf'}), url = URL.createObjectURL(file), _iFrame = document.createElement(' ...
Read more >JavaScript: Save BLOB as PDF File - ASPSnippets
In this article I will explain with an example, how to save BLOB (Binary Data) as PDF file using JavaScript. The PDF file...
Read more >Convert PDF Form to Blob, Base64 URL, or Raw PDF
Download a fillable PDF form as a PDF file or get the form as Blob, Base64 URL, or raw PDF to preview it...
Read more >Open & Display PDF from Blob Using JavaScript - PSPDFKit
Open and Display PDFs from a Blob Using JavaScript ... const documentBlobObjectUrl = URL.createObjectURL(blob); PSPDFKit.load({ document: documentBlobObjectUrl }) ...
Read more >How to create PDF blob from bytes, string, data uri, html
I've tried converting a JPEG blob to a string or array of bytes and back again, and haven't had any success. function setImage(po)...
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 Free
Top 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
cheers
same problem:(