Skip to main content
glabushka
Participant
April 28, 2025
Question

Editing hyperlinks action

  • April 28, 2025
  • 2 replies
  • 440 views

Hello all,

 

I hope someone could help. 
I have a PDF file with multiple links to open different HEIC files and the users have issues with that since the images can't be opened natively in our environment. We do have a HEIC to JPG converter, but to use JPG images, we would need to change extension in the action for hyperlinks from ".HEIC" to ".JPG" and I can't seem to fins a way to do it. Could anyone provide some guidance on how to do this either via Action Wizard or by executing JavaScript or, using automation with VBA? 

 

Thank you

2 replies

try67
Community Expert
Community Expert
April 29, 2025

You can use this (paid-for) stand-alone tool I've developed to easily edit the actions of all the links in your file(s) to point to .jpg files instead of .heic (or do any other type of editing on it): https://www.try67.com/tool/batch-edit-file-links-in-pdf-files

 

glabushka
glabushkaAuthor
Participant
April 29, 2025

Hello try67,

 

thank you for your reply. I have found your solution as an answer to someone else's question and maybe not on this forum. Anyway, unfortunately, there is no budget for this and the entity I am working for is very particular as to usage of the third-party software. In other words, it is prohibited. 
I was hoping more for some guidance with some cosde snippets, which I could try to analyze and test and/or adjust to my my needs. To add some more context, the PDF I have is a report created by the applicaiton called Cellebrite Reader, which is used for analysis of the cellphone extractions. In this particular case, the PDF contains a conversation, where some individfual messages have text links to images/videos and so on. When right-clicking on the link, I could get to the Edit Link dialogue and check the Actions method, which is  "Open a Web link", but the address is a local relative path to the files in question.
Full discosure, I have spent a couple of hours with ChatGPT and none of the suggested code variations done in VBA or JavaScript were able to find any links. Now, it is trying to get me a profile for Preflight so that I could expor out the links to XML, make changes and then somehow reapply them  to the PDF.

try67
Community Expert
Community Expert
April 29, 2025

This is impossible using a script in Acrobat. I also don't think it's possible using a Preflight Profile.

If you wish, you can send me the file and I'll process it for you using my tool, and then send you back the result, for a discounted fee, and you won't need to install any tool on your machine. It will be much cheaper than wasting your time doing it manually, or going down a path that leads nowhere...

Otherwise, you would need to learn how to code in Java (or other similar languages with an advanced PDF library support) to be able to do it on your own.

Bernd Alheit
Community Expert
Community Expert
April 28, 2025

May be possible when you create a plugin (written in C/C++) for this.

glabushka
glabushkaAuthor
Participant
April 28, 2025

Hello Bernd,

thank you for your reply. Unfortunately, C/C++ is not my forte and I don't think I can pick up either one fast enough to be able to do that. Hoped that my question would be something that others have had experience with as it doesn't seem as a compeltely out of this world task. 

Thom Parker
Community Expert
Community Expert
April 28, 2025

Creating a custom link conversion requires C++ plug-in.  You are not the first to have this need. I've written custom converters a few times.  It's usually a fairly easy task in C++.  Contact me if you have a budget for custom development. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often