Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Numbers in PDF to Phone URL tel:000000000

Community Expert ,
Nov 01, 2016 Nov 01, 2016

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!

TOPICS
Acrobat SDK and JavaScript , Windows
528
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2016 Nov 01, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2016 Nov 01, 2016
LATEST

Thanks! I’ll provide this information to the user who asked me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines