YSS

YSS

What are the options to create PDF Files?

We upgraded our servers from Debian12 to Debian13 and woops, wkhtmltopdf is not there anymore, the project closed down, is not being updated anymore and wkhtmltopdf uses an very old Qt4 library.

Now what? I really do not want to go installing headless chrome on these containers and take up so many resources to create PDF files?

What are you guys now using to create PDF files? I’m probably not the only one with this issue right?

Thanks for helping!

Most Liked

kevinschweikert

kevinschweikert

Haven’t used it myself but had it on my list to check it out sometime https://gotenberg.dev/

lukeses

lukeses

Sometime ago at my company, we were also using wkhtmltopdf. We didn’t like that it was run on the same machine as our Elixir app. We also faced some challenges with PDF styling.

At first, we switched to client side rendering of PDF. At that period of time, we used: html2pdf.js | Client-side HTML-to-PDF rendering using pure JS. This also resulted with some issues, as sometimes, depending on the customer browser, PDF differed depending on used browser.

In the end, our go-to solution was an external solution: https://pdfmonkey.io/. I’m not in any way associated with them, just really liking their support, when we were starting a co-operation with them. The pricing is pretty decent, if you don’t generate thousands of PDF.

We’re using PDF Monkey together with: https://pagedjs.org/, which allowed us to use some features, like Table of Content, headers, footers, etc.

Where Next?

Popular in Questions Top

freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

We're in Beta

About us Mission Statement