Skip to content

Commit

Permalink
deleted blm.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz committed Mar 13, 2022
1 parent cf3e883 commit 5b2ed5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"react-html-parser": "2.0.2",
"react-script-tag": "1.1.2",
"rehype-react": "3.0.2",
"sprintf-js": "1.1.2"
"sprintf-js": "1.1.2",
"pdfcrowd":"5.4.0"
}
}
4 changes: 2 additions & 2 deletions static/js/misc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// install: "npm install pdfcrowd"
let currentUrl = window.location.href;
let pdfcrowd = require('pdfcrowd');
let api = new pdfcrowd.HtmlToPdfClient('demo', 'ce544b6ea52a5621fb9d55f8b542d14d');
import { HtmlToPdfClient } from 'pdfcrowd';
let api = new HtmlToPdfClient('demo', 'ce544b6ea52a5621fb9d55f8b542d14d');
api.convertUrlToFile('currentUrl', 'document.pdf', function (err, fileName) {
/* done */
});
Expand Down

0 comments on commit 5b2ed5c

Please sign in to comment.