fraserxu / electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
MIT License
1.24k stars 136 forks source link

Is it possible to run on headless? #263

Open sxiii opened 4 years ago

sxiii commented 4 years ago

I'm having a specific version of linux that hasn't many stuff like xvfb etc.

I was able to achieve screenshoting in chrome & chromium by using the "gowitness" tool.

When I'm running the electron-pdf, however, I got the following error:

/usr/app/nodejs/10.13.0/lib/node_modules/electron-pdf/node_modules/electron/dist/electron: /usr/lib/libdbus-1.so.3: no version information available (required by /usr/app/nodejs/10.13.0/lib/node_modules/electron-pdf/node_modules/electron/dist/electron)

I know it's more likely to be a problem of my distro rather then electron-pdf; but I wonder; if there are any ways in running that headless or the only way it can be achieved is via virtual xserver & xvfb? Thanks.