Draw rounded ORCID badges in PDFs
This commit is contained in:
1 parent
5d6d51536f
commit
e4c5b0cb32
5 files changed
+56
-11
No files matched your search
@@ -777,9 +777,10 @@ impl Element for PositionedPages {
|
||||
badge_area.add_offset(Position::new(x, y));
|
||||
badge_area.set_width(Mm::from(4.0));
|
||||
badge_area.set_height(Mm::from(4.0));
|
||||
badge_area.fill_rect(
|
||||
badge_area.fill_rounded_rect(
|
||||
Position::default(),
|
||||
Size::new(4.0, 4.0),
|
||||
0.8,
|
||||
Style::new().with_color(genpdf::style::Color::Rgb(166, 206, 57)),
|
||||
);
|
||||
badge_area.print_str(
|
||||
|
||||
Reference in new issue
Block a user