Skip to content

HtmlPdf.create() page navigate failed #135

Description

@bettysteger

I have a question, because i am creating a HTML file with some file:// links to different assets.

I am using the base-tag in the head for linking to another directory, like this:

<base href="file:///Users/Betty/some_project/app/www/">

when I open the HTML file every asset is loaded correctly and also before, when defining this as base in the options of the html-pdf node module (with phantomjs) this worked just fine..

I am not sure why I get this error, and I hope maybe someone can give me an hint :)

Error: HtmlPdf.create() page navigate failed.
    at /Users/Betty/redox/some_project/screens-generator/node_modules/html-pdf-chrome/lib/src/index.js:174:19

The create works without the file links, but then I would have no JS/CSS/images.

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