When I rotate a page to 270 degrees and want to access it later from appending, any page rotated 270 is adding +1 to the index #3964
-
I have a Contents Appendix and whenever I rotate pages, export them and try to access those pages that are 270 degree rotation, the link is giving me the next page. For example: If I press Page 15 from my Contents list, the link goes to page 16. How do I fix that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Please be more verbose: |
Beta Was this translation helpful? Give feedback.
-
I don't believe that your problem has to do with page rotations.
If you write a TOC as text then that page (and any subsequent ones that may be necessary) invalidate the the page numbers coming later: If you add a TOC page (say: it will become page number 2), then the previous page number 2 will now be 3, and so on. Also don't see why you use link kind |
Beta Was this translation helpful? Give feedback.
In your link dictionary, you must specify the target page number and the "to" point. Depending on where on the page you want that to be, the computation of the correct value may be a little awkward.
But if all fails, you can simply specify
"to": pymupdf.Point(0, 0)
which will point to the target page's bottom left. In any case, you should definitely see the target page popping up.