Skip to content

Commit 1816d26

Browse files
committed
Upgrade to phantomjs v2
1 parent 253f399 commit 1816d26

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

example/businesscard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
padding: 0;
99
font-family: 'Sackers Gothic Std';
1010
font-weight: 500;
11-
font-size: 10px;
11+
font-size: 7px;
1212
background: rgb(241,241,241);
1313
-webkit-print-color-adjust: exact;
1414
box-sizing: border-box;

example/businesscard.pdf

-4.94 KB
Binary file not shown.

lib/pdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var path = require('path')
44
var assert = require('assert')
55

66
try {
7-
var phantomjs = require('phantomjs')
7+
var phantomjs = require('phantomjs-prebuilt')
88
} catch (err) {
99
console.log('html-pdf: Failed to load PhantomJS module.', err)
1010
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"tape": "^3.4.0"
2424
},
2525
"optionalDependencies": {
26-
"phantomjs": "^1.9.19"
26+
"phantomjs-prebuilt": "^2.1.4"
2727
},
2828
"repository": {
2929
"type": "git",

0 commit comments

Comments
 (0)