fschutt / printpdf

A fully-featured PDF library for Rust, WASM-ready
https://fschutt.github.io/printpdf/
MIT License
829 stars 98 forks source link

Add support for XYZ explicit destination links #186

Closed chipsenkbeil closed 4 weeks ago

chipsenkbeil commented 2 months ago

Resolves #185.

This is just a rough sketch of an idea to support destination links within a PDF. I just tested this and it works for my use case, so figured I'd reshare how I did it.

You can read my logic in the issue referenced. Happy to modify this in ways to make it work for the library, or just drop it and I'll keep using my own fork. 😄