Produces a blank PDF file via CLI
See original GitHub issueSteps to reproduce:
- Build the ‘reference’ docker machine: https://github.com/fraserxu/docker-tape-run
- Run the built image,
exec -it
into the machine withsh
npm install --unsafe-perm electron-pdf -g
Xvfb -ac -screen scrn 1280x2000x24 :9.0 & export DISPLAY=:9.0
electron-pdf http://neti.ee test.pdf
Produces an empty PDF file of 661 bytes in length.
Electron PDF version v1.1.9 Electron 1.4.15
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
How do I create a blank PDF from the command line?
Issuing touch blank.pdf produces an empty PDF file. Is there a command line tool that produces an empty PDF page? command-line ...
Read more >GhostScript generates a blank PDF file on a specific PDF ...
Anyway, with that command line I get a PDF file which looks reasonable and is 20% the size of the original. Using your...
Read more >How to create an empty file from command line - Ask Ubuntu
The command echo -n > file. creates an empty file, if your version of echo supports the -n switch. Or you could use...
Read more >Create PDFs with Acrobat - Adobe Support
Note: To add a blank page to an existing PDF, open the PDF and then choose Tools > Organize Pages > Insert >...
Read more >Blank pages displayed when viewing large PDF - IBM
This error occurs when an object in the PDF document is incomplete, or when an object is missing a key element. Frequently, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am having this same issue (v 1.2.5). It works when I call it using the absolute path for file.
Fixed in 1.2.0