I have a PDF document. The document consists of several chapters, sections, etc. The text contains links to other chapters or sections; eg:
- In chapter 15 we will see that ...
- The term ... referred to in section 7.1, ...
Links are βlinksβ; that is, when you click on them, it goes to the corresponding text.
However, the links change the PDF zoom level to "Fit Page", as shown in the following dialog box (photo taken in Adobe Acrobat):

I do not like this behavior and prefer that the zoom level does not change. To do this, there is the option "Inherit scale".
The problem is that there are too many links in the document to change them manually. Therefore, I want to somehow programmatically change the zoom level of all links in the PDF to "Inherit Scale".
Is it possible to use iText or similar libraries?
source share