gutschilla / elixir-pdf-generator

Create PDFs with wkhtmltopdf or puppeteer/chromium from Elixir.
MIT License
332 stars 71 forks source link

shell_options not working as intended? #76

Closed pedrocaseiro closed 4 years ago

pedrocaseiro commented 4 years ago

I'm trying to add a header to my PDF but it is never getting rendered (even though the PDF is). I've tried:

PdfGenerator.generate_binary!(no_sandbox: true, shell_params: ["--header-html", "../agreement.html"])
and
PdfGenerator.generate_binary!(no_sandbox: true, shell_params: ["--header-html", "#{read_file("../agreement.html")}"])

Am I doing something wrong here?