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

Using the API To Create Hyperlinks

New Here ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Can I use the API to add hyperlinks in the document to areas within that same document? That is, can the API  replicate/replace the functionlaity of the Link tool?

TOPICS
Acrobat SDK and JavaScript

Views

487

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

What API?

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

I was under the impression that Datalogics, ActivePDF, and Foxit all had SDKs which would provide that capability. Is that not correct?

Votes

Translate

Translate

Report

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
LEGEND ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

You would need to ask ActivePDF and Foxit about their APIs. Datalogics license the Acrobat Library from Adobe, so it is on topic here. This offers a C++ library (and some other language ports). This can be used, by users who have some knowledge of internal PDF concepts and structures (not too much for this task), to create what in PDF terms is a "Go To Link" from an area on one page to an area on another page, specifying the zoom option. Reading around PDAction and PDAnnot in the API would be a start though you'd also need to know about PDDoc and PDPage objects, among others. (These are API abstractions, not names in the PDF specification).

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

LATEST

Since you've tagged the question with Acrobat SDK and JavaScript, I'll assume you mean JavaScript but the Acrobat C++ API can do so as well. So...Yes.

For JavaScript, you can see an example here which shows how to add a link, set the action to perform when clicked and set the appearance properties.

Votes

Translate

Translate

Report

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