bitcrowd / chromic_pdf

Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Apache License 2.0
409 stars 37 forks source link

Ability to pass URL as the template source? #260

Closed osbre closed 1 year ago

osbre commented 1 year ago

Hi, is it possible to pass an URL as the template source? The reason for doing that, is it has a very nice customization options.

maltoe commented 1 year ago

Hi @osbre ,

no, I'm afraid not. Also not sure how that would work, i.e. how ChromicPDF.Template would inject its CSS into the markup behind your URL.

But it's not doing much anyway. I'd suggest you use it to help derive a set of options and insert the CSS into your markup manually.