Embed fonts and add PDF link annotations
This commit is contained in:
1 parent
2856506d65
commit
3b270d749d
6 files changed
+247
-12
No files matched your search
+10
-7
@@ -110,11 +110,14 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
- Preprint title blocks: ORCID links in `\author` render as a native vector
|
||||
badge (ORCID green square with a white iD) before the author name; the
|
||||
original bitmap ORCID logo is not embedded.
|
||||
Hyperlinks use hyperref's green text colour; PDF link annotations are not
|
||||
emitted. Metadata baselines match the reference within 0.3 pt and page 1 keeps the same closing section-2 line as the reference. PDF link annotations are
|
||||
blocked on `printpdf 0.3.4`: it has no annotation API, so a vendored printpdf
|
||||
patch must add a `/Annots` writer before `\href`/ORCID links can be clickable.
|
||||
The same patch is the natural place to attach API-provided ORCID icon images.
|
||||
Hyperlinks use hyperref's green text colour; visible `\url` text emits a
|
||||
PDF `/Link` URI annotation (`/Annots`). `\href`/ORCID-name labels still
|
||||
carry only colour, because their target URL is not yet stored on the run.
|
||||
Metadata baselines match the reference within 0.3 pt and page 1 keeps the
|
||||
same closing section-2 line as the reference. `printpdf 0.3.4` has no
|
||||
annotation API, so the link is added by reopening the finished PDF with
|
||||
lopdf and extending each page dictionary. Extending this to `\href`/ORCID
|
||||
labels (and API-provided ORCID icon images) is the next step.
|
||||
|
||||
## Verification
|
||||
|
||||
@@ -124,7 +127,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
3.6 MB and `pdffonts` reports only embedded CID TrueType faces); this avoids
|
||||
viewer-dependent glyph substitution. Tables use natural column widths and
|
||||
centered rules; preview and PDF share the same table line coordinates.
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (53 tests: 49 compiler
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (54 tests: 50 compiler
|
||||
integration tests + 4 server tests) covers the three examples, the arXiv
|
||||
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
|
||||
project API, static frontend assets, path traversal, the legacy
|
||||
@@ -133,7 +136,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
|
||||
## Verification snapshot
|
||||
|
||||
- Compiler integration tests: 49; server tests: 4; total 53.
|
||||
- Compiler integration tests: 50; server tests: 4; total 54.
|
||||
- `cargo fmt --check` passes.
|
||||
- arXiv fixture: 3 Letter pages, ~3.6 MB, embedded Liberation faces only.
|
||||
- Title/author/date/Introduction baselines within 0.3 pt of the XeLaTeX
|
||||
|
||||
Reference in new issue
Block a user