Go back after following an internal hyperlink

Hello,

In the PDFTron viewer it is possible to follow internal (and external) hyperlinks. The feature we are seeking is to have an option to go back to the original page where the user clicked on the internal hyperlink.
Is this feature available in the SDK, or should this be written by the developers themselves? If so, are there any specific functions we should have a look at?

Kind regards,
Yorick

Android:

If you are integrating with PDFTron SDK via:
https://www.pdftron.com/documentation/android/guides/getting-started/using-activity
or
https://www.pdftron.com/documentation/android/guides/getting-started/using-fragment

This is done for you in the latest PDFTron Android 6.8 SDK.
See:
https://imgur.com/a/HSNUwrV

If you would like to do this yourself, it is possible:

When annotation type is Annot.e_Link, save a boolean member varialbe i.e. linkClicked as well as current page, i.e. savedPageNum

Then show a back button of your choice. Upon clicking, simply check:
if (linkClicked) { mPdfViewCtrl.setCurrentPage(savedPageNum); }

iOS:

Similar to instruction of how you can add it on Android, you can add it on iOS:

When annotation type is link, save a boolean member varialbe i.e. linkClicked as well as current page, i.e. savedPageNum

Then show a back button of your choice. Upon clicking, simply check:
if (linkClicked) { [mPdfViewCtrl SetCurrentPage: savedPageNum]; }