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

How to make a second link work?

Guest
Jun 21, 2016 Jun 21, 2016

Document 1 contains a link that takes the user to a named destination is document 2.

var doc2URL = endodeURI('https://.../doc2.pdf');

var doc2 = app.openDoc({ cPath: doc2URL, cFS: "CHTTP"});

doc2.gotoNamedDest('doc2dest');

This works.

Document 2 contains a link that takes the user to a named destination in document 3.

var doc3URL = encodeURI('https://.../doc3.pdf');

var doc3 = app.openDoc({ cPath: doc3URL, cFS: "CHTTP"});

doc3.gotoNamedDest('doc3dest');

This does not work while document 2 is open.

How do I make the second link work?

TOPICS
Acrobat SDK and JavaScript
404
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 ,
Jun 21, 2016 Jun 21, 2016

Is "doc3" disclosed? Are there any error messages in the JS Console?

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
Guest
Jun 21, 2016 Jun 21, 2016

doc3 is not disclosed.

TyepError: doc3 is undefined.

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 ,
Jun 21, 2016 Jun 21, 2016

Then you should probably disclose it.

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
Guest
Jun 21, 2016 Jun 21, 2016
LATEST

That did not work.

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