Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs seem wrong for using chrome #70

Open
jdewar opened this issue Jun 16, 2020 · 0 comments
Open

docs seem wrong for using chrome #70

jdewar opened this issue Jun 16, 2020 · 0 comments

Comments

@jdewar
Copy link

jdewar commented Jun 16, 2020

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:

|> PdfGenerator.generate_binary(
  generator: :chrome,
  prefer_system_executable: true
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant