Skip to content

Preserve hyperlinks in PDF export and support PDF in CLI convert - #1292

Merged
aiongg merged 1 commit into
storytold:mainfrom
derechopiano:fix/pdf-hyperlinks-954
Oct 22, 2026
Merged

aiongg merged 1 commit into
storytold:mainfrom
derechopiano:fix/pdf-hyperlinks-954

Conversation

@derechopiano

Copy link
Copy Markdown
Contributor

Fixes #954.

PDF export previously discarded cell hyperlinks. Exported pages now contain clickable PDF annotations for HTTP(S)/mailto links and direct in-workbook cell targets that are present in the printed pages. Link rectangles are clipped to the printed block; unsafe URL schemes and targets outside the printed range do not create annotations. gridcraft-cli convert input.xlsx output.pdf [--sheet NAME] uses the same PDF export path.

Validation: cargo xtask ci passed locally on Windows for commit 78ffd3b4c3907f6d1695a3ad91996c2b746bda3f (formatting, workspace Clippy, all workspace tests, assets, layers, WASM, parity, keytips). New tests cover PDF annotation structure, exported links across pages and print ranges, and XLSX-to-PDF CLI conversion.

@cocoon

cocoon commented Oct 14, 2026

Copy link
Copy Markdown

Many thanks, tested it, and worked for my file.

@aiongg
aiongg merged commit 0e29883 into storytold:main Oct 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PDF] Export to PDF does not keep links

3 participants