Mobile app version of vmapp.org
Login or Join
Jennifer810

: Auto-link phone numbers in a pdf file In Adobe Acrobat, you can process a document using the "Create Links from URLs" function to automatically detect email and web links in a pdf file and

@Jennifer810

Posted in: #Adobe #AdobeAcrobat #Pdf

In Adobe Acrobat, you can process a document using the "Create Links from URLs" function to automatically detect email and web links in a pdf file and make them live links.

I want to do the same thing for phone numbers.
You can manually tag phone numbers using the tel: code. (tel:+000000000). and they will be active links when viewed from a smartphone. (click the link to initiate a phone call)

I am looking for a script or third party plug-in that can automatically detect phone numbers and tag them. Has anyone run across anything that might do this?

This is probably not a design question, but someone here must have run into this before.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer810

2 Comments

Sorted by latest first Latest Oldest Best

 

@Si6392903

This one should work... tel:XXX-XXX-XXXX

10% popularity Vote Up Vote Down


 

@Alves566

Okay, you can probably script it to automate this even more but this should get you started in a fairly efficient way of doing it.

First, find your phone numbers and replace them with one of the Android+iOS accepted formats. According to Tutsplus:


555-5555 (iPhone Only)
(555) 555-5555 (Android + iPhone)
+1 (555) 555-5555 (iPhone Only)
555 5555 (iPhone Only)
555 555 5555 (Android + iPhone)
+1 555 555 5555 (iPhone Only)
555.5555 (iPhone Only)
555.555.5555 (Android + iPhone)
+1 555.555.5555 (iPhone Only)


So let's use the decimal point style, 555.555.5555. Do a find and replace using GREP.

Find what: (?(ddd))?[-. ‑]?(ddd)[-. ‑]?(dddd)
Change to: tel:..

Now your phone numbers should be tel:123.456.7890

Now do another find searching for tel:^9^9^9.^9^9^9.^9^9^9^9. Click find, then click New Hyperlink from URL. Then find next and repeat.

Once done doing New Hyperlink from URL do another find and replace to remove the tel: from the phone numbers. If you want you can even change the format again.

That find next and repeat is something you could probably script but that's up to you.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme