question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Produces a blank PDF file via CLI

See original GitHub issue

Steps to reproduce:

  1. Build the ‘reference’ docker machine: https://github.com/fraserxu/docker-tape-run
  2. Run the built image, exec -it into the machine with sh
  3. npm install --unsafe-perm electron-pdf -g
  4. Xvfb -ac -screen scrn 1280x2000x24 :9.0 & export DISPLAY=:9.0
  5. 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
marcosbaronicommented, Aug 31, 2018

I am having this same issue (v 1.2.5). It works when I call it using the absolute path for file.

1reaction
codecounselorcommented, Feb 17, 2017

Fixed in 1.2.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found