Conversation
Three independent rendering defects surfaced on the CV gallery presets
when comparing the rendered PDFs to authors' intent.
Engine
- PdfFixedLayoutBackend now emits paragraph-level link annotations as
per-line rects tight to the rendered text (alignment-aware lineX +
line.width()) instead of the full fragment box. Right-aligned
contact rows (Timeline Minimal / Sidebar Portrait / Monogram
Sidebar) no longer hijack each other's clicks across the empty
alignment gap.
- PdfFont.textSanitizer no longer collapses adjacent author spaces.
The previous collapse shrank multi-space tokens at render while
measurement kept the original width, drifting span-level link
rectangles ~8pt per " | " separator (visible on Boxed Sections
/ Centered Headline) and visually merging spaced-caps titles like
spacedUpper("ARTEM DEMCHYSHYN") back into a single run. Newlines /
NBSP / control chars still resolve to a single space each.
Templates
- BoxedSections Projects render each item as two stacked paragraphs:
bullet + bold project name (with optional "(tech stack)" chunk) on
the first line, hanging-indented description below. Honours both
BulletListBlock and IndentedBlock data shapes. Example data and the
visual gallery test ship tech-stack chunks so the resulting CVs
reflect the canonical layout.
Tests
- New regressions in PdfFixedLayoutBackendFeaturesTest and
PdfFontSanitizerTest pin tight link rects on right-/center-aligned
contact rows and the preserved-whitespace contract.
- Layout snapshot baselines for five CV presets and the nested-list
document widened to reflect the recovered whitespace.
- Visual baseline PNGs for six CV presets refreshed for the two-line
Projects layout and the wider spaced-caps headlines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Patch release for CV PDF rendering correctness.
Changes:
No public API changes.
Testing