Using the API To Create Hyperlinks

New Here ,
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, Edit and convert PDFs, How to

Views

167

Likes

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

Using the API To Create Hyperlinks

New Here ,
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, Edit and convert PDFs, How to

Views

168

Likes

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
Jun 11, 2020 0
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

What API?

Likes

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
Reply
Loading...
Jun 11, 2020 0
New Here ,
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?

Likes

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
Reply
Loading...
Jun 11, 2020 0
Most Valuable Participant ,
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).

Likes

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
Reply
Loading...
Jun 11, 2020 0
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jun 11, 2020 0