Generate PDF in elixir

Hi All,

I am trying to use the PDF generator here. When I run PdfGenerator.generate(html, page_size: "A5") it raises an error Unknown long argument --page-size\n\nName:\n wkhtmltoimage 0.12.5 Question is, why is it using wkhtmltoimage instead of wkhtmltopdf?

My config.exs has

config :pdf_generator,
     wkhtml_path: "/path/to/wkhtmltopdf"
1 Like

Did you install wkhtmltopdf?

1 Like


The issue was with the html template and not the generator. Now resolved.