Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas2pdf

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas2pdf - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -23,7 +23,7 @@ # Canvas2PDF

//convert your PDF to a Blob and save to file
context.stream.on('finish', function () {
var blob = context.stream.toBlob('application/pdf');
ctx.stream.on('finish', function () {
var blob = ctx.stream.toBlob('application/pdf');
saveAs(blob, 'example.pdf', true);
});
context.end();
ctx.end();
```

@@ -40,3 +40,3 @@

## Interactive Browser Demo
[Open](https://joshua-gould.github.io/canvas2pdf/demo.html)
[Open Demo](https://joshua-gould.github.io/canvas2pdf/demo.html)

@@ -48,4 +48,6 @@ ## Notes

## Status
[![Build Status](https://travis-ci.org/joshua-gould/canvas2pdf.svg?branch=master)](https://travis-ci.org/joshua-gould/canvas2pdf)
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc