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

Automate adding hyperlinks to a daily pdf

New Here ,
Nov 03, 2016 Nov 03, 2016

I create a pdf every day. The first page is a summary sheet with a list of names followed by some summary data (for example) :

A:      123232 xyz 100%

B:      121311 vgf 75%

C:      234525 jkl 89%

Then page two is a full detailed look at "A", page 3 a look at "B" etc. (There's about 30 of these)

I want to call a program to add hyperlinks to A, B, and C on the first summary page, that will take you to the corresponding detailed pages (so you click on "A" on page one, and it will take you to page 2, which has a back button to go back to page 1)

I have tried adding the links in excel when we make the report, and that's a whole other nightmare when printing to a pdf. So I figured I would look into automating the addition of hyperlinks through Adobe once it is already a pdf, rather than using excel.

Any thoughts or tips on how to do this would be greatly appreciated.

TOPICS
Acrobat SDK and JavaScript , Windows
1.7K
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

correct answers 1 Correct answer

Community Expert , Nov 04, 2016 Nov 04, 2016

In that case you can simply use the addField or addLink methods of the Document object to create them, and then the setAction method to set them to point to a specific page. These methods are all documented in the Acrobat JS Reference, with examples.

Translate
Community Expert ,
Nov 03, 2016 Nov 03, 2016

Are the locations of the links on the page and their targets always the

same?

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
New Here ,
Nov 04, 2016 Nov 04, 2016

Yes, they will always be in the same place on page one and in the same order throughout.

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 04, 2016 Nov 04, 2016

In that case you can simply use the addField or addLink methods of the Document object to create them, and then the setAction method to set them to point to a specific page. These methods are all documented in the Acrobat JS Reference, with examples.

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
New Here ,
Nov 04, 2016 Nov 04, 2016
LATEST

I'll give it a try, I'm very unfamiliar with adobe js stuff. Thank you!

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