Embed the official ORCID logo as a PDF image

This commit is contained in:
gloamxun committed 2026-10-19 22:43:24 +08:00
1 parent 69edbf56b6
commit 769e3cdf17
8 files changed
+49 -46

No files matched your search

+5 -10
View File
@@ -65,16 +65,11 @@ the printpdf writer.
### ORCID author icon
`orcid.pdf` is an image inside `\author`, but metadata currently keeps text
only. The title author-row renderer needs a positioned-image item that accepts an
x offset (the current `PositionedPageItem::Image` is pinned to x = 0) and a
small PNG/vector badge loaded from repository assets. The current fallback is
`PositionedPageItem::Badge`: a native rounded polygon in the PDF (through the
vendored `genpdf::Area::fill_rounded_rect`) and a rounded `rect` in SVG, with a
white `iD` label. An earlier 256 px PNG experiment was reverted because genpdf
emitted a 12x12 px image regardless of `Image::with_scale`. Replacing the
polygon with the official ORCID bitmap still needs an image writer that keeps
the requested size and an x offset.
Completed: `\orcidlink` and ORCID author URLs use the bundled official logo
`assets/orcid-logo.png` (rasterized from the template's `orcid.pdf`), embedded
at 2.2 mm before the author name. SVG preview keeps the rounded `rect` shape.
The PDF badge is positioned by `PositionedPageItem::Badge` and carries its
`/Link` annotation. No remaining template-specific icon path is needed.
### First-page paragraph break