Skip to content

Produces a blank PDF file via CLI in v7.0.0 #268

Open
@kristofmulier

Description

@kristofmulier

I'm using electron-pdf in Ubuntu 19.10, installed in the following way:

    $ sudo apt-get upgrade
    $ sudo apt install nodejs
    $ sudo apt install npm
    $ sudo npm install npm@latest -g
    $ sudo npm install electron-pdf -g --unsafe-perm

Now I try to convert an .html document into a .pdf:

$ electron-pdf input.html output.pdf

The result is a blank pdf file.

If I do the same conversion, but with absolute paths, it works:

$ electron-pdf /home/kristof/Documents/invoices/input.html /home/kristof/Documents/invoices/output.pdf

Now I get a nice pdf file, just perfect.

The same issue was already raised long time ago: #173

It seems like it was fixed, but now it emerges again?

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