I have a pdf document with a link to another existing document and to a non existing document. Using Delphi.
Clicking the link "link to destination" - brings the "Open Document Warning" dialog.
- How to disable this dialog from opening?
- How to react to the "link navigation event" - get the target document (path) and cancel it if needed?
- How to react to the "link navigation event" - get the target document (path) and bring my own custom dialog saying the link is dead.
If Docs.SingleWnd = false and Docs.OpenRelDocTabMode = 2 (same tab), the destination document does get open but an AV happens.
If Docs.SingleWnd = false and Docs.OpenRelDocTabMode = 0 (new tab) - no AV and all works as expected (destination document opens in new tab).
I'm attaching a sample Delphi project to test by your Delphi-guy.
-ž