Add Open File Link Example

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

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Add Open File Link Example

Post by docu-track99 »

Any possibility of getting an example of how to call the new Add "Open a File..." link command id 36497 from vb.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Add Open File Link Example

Post by Vasyl - PDF-XChange »

You can use JS (for example):

Code: Select all

var p = 0;
var b = this.getPageBox("Crop", p);
var l = this.getLinks(p, b);
for (i = 0; i < l.length; i++) 
  l[i].setAction("http://www.google.com");
Pass this script to RunJavaScript routine.
Also you can add new link(s) by 'Doc.addLink' method (see more in http://www.adobe.com/devnet/acrobat/pdf ... erence.pdf).
All supported JS-features are specified in our ActiveX-Help.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Add Open File Link Example

Post by docu-track99 »

Thanks for the reply, but I need to pass parameters like when using manually the 'Open a File..." dialog from link properties->Action. The javascript weblink example will not let me pass parameters.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Add Open File Link Example

Post by docu-track99 »

One additional note to clarify. What I am asking for specifically is an example using 'DoVerb' with this Named Operation/Object.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Add Open File Link Example

Post by Vasyl - PDF-XChange »

I understand You, but it is impossible in the current version. You can try (as workaround in current version) use "file://.." URL for open a local file.
In one of the future builds we are planning to realize special features for add, modify annotations (and links) through the DoVerb routine.
Also we are planning to support Adobe-plugins in the near future. Please be patient.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.