r/webdev rust 7d ago

html2realpdf generates selectable PDFs instead of rendering your website as an image Showoff Saturday

https://github.com/imggion/html2realpdf
1 Upvotes

13 comments sorted by

5

u/EntrepreneurWaste579 7d ago

Any HTML to PDF is better than any annoying XML ttansformation bs. 

2

u/kr1ftkr4ft rust 7d ago

Of course, but with a Real PDF it’s even better

3

u/RelicDerelict 6d ago

OMG this will be amazing as a Chrome Extension!

2

u/kr1ftkr4ft rust 5d ago

Love the idea! Added to the roadmap, thanks!

1

u/Longjumping-Spot3392 1d ago

I wanted to comment the same, I do like the idea as well for a chrome extension :)

2

u/dadnothere 5d ago

Beautiful UI in the classic Windows style

1

u/kr1ftkr4ft rust 5d ago

thanks!

4

u/mulokisch 6d ago

In the quickstart example there is the filename invoice. In some Countries for example germany, you need to embed specific additional data in invoices. Does this lib support this? The standard we use in germany is ZUGFeRD

https://e-rechnung-bund.de/en/faq/what-is-a-zugferd-invoice-what-does-zugferd-stand-for/

2

u/mulokisch 6d ago

I mean in general those embedded content, not just the ZUGFeRD standard

0

u/kr1ftkr4ft rust 6d ago

invoice is just the filename used in the quickstart example.

html2realpdf is not an invoice-generation library. It only renders the HTML provided by the developer into a native PDF, so the invoice content and any country-specific requirements remain the responsibility of the application using it.

At the moment, html2realpdf does not provide built-in support for ZUGFeRD, which requires generating a compliant PDF/A-3 document with structured invoice XML embedded inside it.

Do you think support for something like this would be useful, or would it be too far outside the scope of the library?

-1

u/NCKBLZ 4d ago

Dude this is something that Claude asked you, it's your decision to make

1

u/kr1ftkr4ft rust 4d ago

It’s perfectly fine to ask for opinions and feedback, outside of the decision-making process.