JS to set all links to Inherit

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

joxeme
User
Posts: 62
Joined: Wed Jul 31, 2024 5:10 am

JS to set all links to Inherit

Post by joxeme »

Hi,

Just wondering if it's possible to run JavaScript to set all my document links to Inherit zoom level.

Thank you,
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19919
Joined: Mon Jan 12, 2009 8:07 am

Re: JS to set all links to Inherit

Post by Stefan - PDF-XChange »

Hello joxeme,

Unfortunately JS can only completely overwrite the action for a link, and there are no options for just changing the zoom level on an existing one, sorry.

Kind regards,
Stefan
Willy Van Nuffel
User
Posts: 2774
Joined: Wed Jan 18, 2006 12:10 pm

Re: JS to set all links to Inherit

Post by Willy Van Nuffel »

Not possible via JavaScript, but you can use the existing option "Change Bookmarks Zoom Factor" for that ...
*
PDF-XChange Editor - Change Bookmarks Zoom Factor.png
You do not have the required permissions to view the files attached to this post.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19919
Joined: Mon Jan 12, 2009 8:07 am

Re: JS to set all links to Inherit

Post by Stefan - PDF-XChange »

Hello Willy Van Nuffel,

Yes - if it is bookmarks that will indeed help!
However the original post was referring to links - so I was thinking link objects on the pages directly!

Kind regards,
Stefan
joxeme
User
Posts: 62
Joined: Wed Jul 31, 2024 5:10 am

Re: JS to set all links to Inherit

Post by joxeme »

Thank you, the bookmark tip is nice to know too!! ;)
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11741
Joined: Wed Jan 03, 2018 6:52 pm

JS to set all links to Inherit

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com