clj-pdf / clj-pdf

PDF generation library for Clojure
Other
668 stars 101 forks source link

Label with an icon #204

Open tothda opened 4 years ago

tothda commented 4 years ago

I'd like to add an icon to a piece of text. For instance to add a calendar icon in front of a date.

At first I wanted to use an SVG from the FontAwesome library, but as I see SVGs are positioned relative to the top left corner of the page. Is there a simple way to solve this problem using SVG icons?

yogthos commented 4 years ago

There isn't a way to position SVGs relative to text at the moment. I'd be open to adding that as feature, but don't have time to look at it in the near future. I would be open to a PR if somebody has the time before I get to it.

prestancedesign commented 2 years ago

Hi, Seems to be still the case, can you confirm please?

yogthos commented 2 years ago

Yup, this is still an open issue.

prestancedesign commented 2 years ago

OK thanks. So currently it's not possible to position charts, graphs and svgs dynamically and relative to the content, is it?

yogthos commented 2 years ago

That's correct, there isn't support for positioning svg relative to the page at the moment.

prestancedesign commented 2 years ago

Thanks for the confirmation and this awesome lib!

yogthos commented 2 years ago

Thanks, and glad it's coming in handy. :)