---
title: "Comment by Serguei Cambour on \"Adding PDF generate feature in Phoenix LiveView app\" | Hashnode"
description: "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 defi"
url: "https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6/comment/65a40564d90893d9713fc62a"
---

[Discussion](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6)

Comment [Adding PDF generate feature in Phoenix LiveView app](https://hashnode.com/posts/adding-pdf-generate-feature-in-phoenix-liveview-app/659d413d4520242013c0e9a6)

[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.
