---
title: "Discussion on \"Adding PDF generate feature in Phoenix LiveView app\" | Hashnode"
description: "Discussion on \"Adding PDF generate feature in Phoenix LiveView app\". Generating pdf is very common in day-to-day web applications. In E-commerce websites like Amazon when we do any shopping we get the option to get the invoice. It's not an easy task to implement it people often have a hard time implementing it because..."
url: "https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding PDF generate feature in Phoenix LiveView app](https://abulasar.com/adding-pdf-generate-feature-in-phoenix-liveview-app?utm_source=hashnode&utm_medium=feed)

Generating pdf is very common in day-to-day web applications. In E-commerce websites like Amazon when we do any shopping we get the option to get the invoice. It's not an easy task to implement it people often have a hard time implementing it because...

Jan 9, 2024 · 6 min read · abulasar.com  
Updated Sep 16, 2024  
Read the article

-   [#chromicpdf](https://hashnode.com/tag/chromicpdf)
-   [#phoenix-liveview](https://hashnode.com/tag/phoenix-liveview)
-   [#pdf](https://hashnode.com/tag/pdf)

## Written by

[AbulAsar S.](https://hashnode.com/@abulasar)

@abulasar · Mumbai, India

  
[View profile](https://hashnode.com/@abulasar)

Elixir |> JS/TS |> C++ |> AI enthusiast

I am a Software Engineer from Mumbai, India. In love with Functional programming ( precisely Elixir). Love to share the knowledge that I learn while developing things.

## Responses 3

Markdown supported · ⌘↵ to post

[P B](https://hashnode.com/@explorer209)

[Jun 5, 2024](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/66604bfd288003985a613eac)

Thanks a lot. I have got it working with the help of this. Do you have any pointers on how to get styling working with Tailwind css?

[David](https://hashnode.com/@dbelixir)

[Jan 18, 2024](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/65a8cadd5fe1292bc8499028)

Nice, chromic\_pdf is great. The issue is it cant modify existing PDFs or create / work with form elements. Something like ruby's prawn would be great. Some things are possible using pdftk but nothing like the great Prawn experience to truely create PDFs. Elixir is missing a GOOD pdf gen library.

[AbulAsar S.](https://hashnode.com/@abulasar)

[Feb 1, 2024](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/65a8cadd5fe1292bc8499028#reply-65bb63cea41d2a2643289ef0)

Agreed. I don't have experience with prawn. It seems to be a very good library. It would be awesome to have one in elixir.

[Serguei Cambour](https://hashnode.com/@belgoros)

[Jan 14, 2024](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/65a40564d90893d9713fc62a)

Thanks a lot for sharing. A tiny error to be fixed though, I think: you mention everywhere `filename: "invoice-#{date}"` but the variable `date` has never been defined.

[AbulAsar S.](https://hashnode.com/@abulasar)

[Jan 14, 2024](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/65a40564d90893d9713fc62a#reply-65a442b69f4d4935c417ed9b)

Thanks for pointing it out. I'll edit the code snippet.
