mupdf-rs
mupdf-rs copied to clipboard
Set outlines of PDF
TODO APIs
- [x]
PdfDocument::delete_outlines - [x]
PdfDocument::set_outlines
Resolve https://github.com/messense/mupdf-rs/issues/54 .
@messense Outline.x and Outline.y are different from Destination.left and Destination.top, which causes PDF viewer jumps to a wrong position in a correct page. Do you know the mapping between them? This is the last problem to be solved.
Do you know the mapping between them? This is the last problem to be solved.
I don't know either.
Fixed. The key is that fitz point is in a coordinate system different from destination point of PDF. We need to transform it via page transform matrix.
May you release a new version after this PR merged?
Published in v0.4.4.