How to get the page information in a link?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

danrtsey
User
Posts: 1
Joined: Thu Dec 31, 2015 2:50 am

How to get the page information in a link?

Post by danrtsey »

I can get the filename when click an annot in a pdf document.
But how to get the page information when the link is not the first page of another file.
Example: there is an annot in "C:\test.pdf". It links to "C:\test1.pdf#page=2" or "C:\test2.pdf#page=3"
I can get the filename is test1.pdf or test2.pdf using Delphi codes,
delphi codes:
if Name = 'Prompts.ConfirmOpenRDoc' then
begin
TCoPDFXCview(ASender).GetProperty('Prompts.ConfirmOpenRDoc.FileName',
DataOut, 0);
end
but how to get the page=2 or page=3?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: How to get the page information in a link?

Post by Tracker Supp-Stefan »

Hello danrtsey,

I spoke with a colleague from the dev team and he is unsure whether this will be possible with the Viewer SDK which you are currently using.
It might be possible with the Editor SDK though by catching the e.document.beforeRunAction event and getting the action from the IPXV_DocActionEvent and the action data itself from it.

The Editor SDK is the successor of the Viewer, and the Viewer one will no longer get any updates or new features, while the Editor one will continue to be developed in the future.

Happy New Year,
Stefan