rather than deal with wkhtmltopdf and flexbox, i've moved to chrome. the docs suggest this for using chrome-headless
config :pdf_generator,
use_chrome: true, # <-- make sure you installed node/puppeteer
prefer_system_executable: true # <-- set this if you installed the NPM dependencies globally
raise_on_missing_wkhtmltopdf_binary: false, # <-- so the app won't complain about a missing wkhtmltopdf
as best as i can tell, use_chrome: true doesn't work, and prefer_system_executable: true doesn't work in config.exs
i believe that config only works here, and like this:
rather than deal with wkhtmltopdf and flexbox, i've moved to chrome. the docs suggest this for using chrome-headless
as best as i can tell,
use_chrome: true
doesn't work, andprefer_system_executable: true
doesn't work inconfig.exs
i believe that config only works here, and like this: