|
|
1838594104
|
feat: v0.5 - Clickable link annotations (Feature Complete)
Phase 5 Implementation:
- Link annotations in PDF (clickable in viewers)
- Page.addUrlLink() - add URL annotation
- Page.addInternalLink() - add internal page link
- Page.urlLink() / writeUrlLink() - visual + annotation combined
- Page.getLinks() - retrieve page links
- OutputProducer generates /Annots arrays for pages
- Link annotation objects with /Type /Annot /Subtype /Link
New example:
- links_demo.zig - demonstrates URL and internal links
- 2 pages with cross-page navigation
- External URLs (example.com, GitHub, mailto)
- Internal links between pages
Final state:
- 7 examples working (hello, invoice, text_demo, image_demo,
table_demo, pagination_demo, links_demo)
- ~70 tests passing
- Complete feature set for document generation
zpdf is now feature-complete for typical document generation needs:
text, tables, images, pagination, and clickable links.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-08 20:53:33 +01:00 |
|