Copy link to clipboard
Copied
Is there a way using javascript to search all phone number (using a regex pattern) and create a phone url link out of it in the form of tel:0000000000
When you have one or two it’s easy to to manually, but with hundreds it make no sense to do it manually.
Thanks!
Copy link to clipboard
Copied
You'll need to iterate over all the words in the file, looking for words that match the format of your phone numbers (this becomes more complicated if the numbers are split by spaces or dashes, as they count as separate words in that case), and then convert the quads of these words to a rect array and add a link object with the desired action over them. Not a simple task...
I've developed a tool that does just that, actually. You can find it here: Custom-made Adobe Scripts: Acrobat -- Create Skype Links
Copy link to clipboard
Copied
Thanks! I’ll provide this information to the user who asked me.