Skip to content

Phantom 2.0 supported? #39

@hawkerboy7

Description

@hawkerboy7

Hi,

I've used this module before and it worked like a charm.
Now on a new computer I've installed Phanthom.js 2.0.
The module now doesn't seem to work.
Using the example code i get this in my terminal.

Is this correct (because 2.0 is not supported) OR am I doing something wrong?

Thx in advance!

2015-09-07T16:15:30 [DEBUG]      2 arg: "{"viewportSize":{"width":1440,"height":900},"paperSize":{"format":"A4","orientation":"portrait","margin":{"top":"1cm","right":"1cm","bottom":"1cm","left":"1cm"}},"outputQuality":"80","zoomFactor":1,"args":"--debug=true","captureDelay":400}"
2015-09-07T16:15:30 [DEBUG] Phantom - execute: Starting normal mode

2015-09-07T16:15:30 [DEBUG] WebPage - setupFrame ""

2015-09-07T16:15:30 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) ) 

2015-09-07T16:15:30 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) ) 

2015-09-07T16:15:30 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) ) 

TypeError: undefined is not an object (evaluating 'phantom.args.length')

  /path-to-project/node_modules/nodepdf/render.js:11 in global code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions