Open shotleybuilder opened 4 years ago
Hi, sorry for just noticing your message now.
Normally you should install puppeteer-pdf
globally, and it will use puppeteer-pdf
as the full path. In some cases where you don't install it globally, you need to provide the full path using that configuration.
elixir-pdf-generator
initially didn't support puppeteer
, that was the reason for me to create this library. You can check more information here. Currently I didn't test it again, but it should work with puppeteer
and this module should cease to exist.
Hi
I'm trying to get the library to execute in Gigalixir. I'm not following this line in the ReadMe: "Do not attempt to use this env var to set the path in production. Instead, use the application configuration, above"
The error I receive is
invalid_exec_path
. I've naively included this in prod.exs:config :puppeteer_pdf, exec_path: "/usr/local/bin/puppeteer-pdf"
Rapidly exhausting my competence on these matters :) I had a look at System.cmd which states
"command is expected to be an executable available in PATH unless an absolute path is given." I'm sure I'm not meeting either of these conditions.
Help appreciated ...
Update Just noticed this for a similar package that relies on chrome https://github.com/gutschilla/elixir-pdf-generator/issues/56