danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.91k stars 356 forks source link

Button group with tick #965

Open lindamarieb opened 6 months ago

lindamarieb commented 6 months ago

I am trying to recreate a Bootstrap like button group with a tick on the selected button but I cannot find a single example of how to do draw the tick. The showcase document mentions that Fontawesome is supported but I cannot find any examples. Can anyone suggest a solution for this please?

siegelzc commented 6 months ago

Screenshot 2024-03-08 at 8 39 44 PM https://getbootstrap.com/docs/4.0/components/button-group/

Is this what you're talking about?

lindamarieb commented 6 months ago

Screenshot 2024-03-08 at 8 39 44 PM https://getbootstrap.com/docs/4.0/components/button-group/

Is this what you're talking about?

Yes this is what I need to do exactly.

siegelzc commented 6 months ago

You can't have interactive elements like this with openhtmltopdf. They will only work in a browser.

If you don't need interactivity, but you just want to draw the button group in a single, unchanging state, that's just a matter of your skills with HTML/CSS.

siegelzc commented 6 months ago

You might be able to just copy/paste the Bootstrap implementation

lindamarieb commented 6 months ago

Thank you, I'll try that.