Add Open File Link Example
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Add Open File Link Example
Any possibility of getting an example of how to call the new Add "Open a File..." link command id 36497 from vb.
-
- Site Admin
- Posts: 2449
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Add Open File Link Example
You can use JS (for example):
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.
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");
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Add Open File Link Example
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.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Add Open File Link Example
One additional note to clarify. What I am asking for specifically is an example using 'DoVerb' with this Named Operation/Object.
-
- Site Admin
- Posts: 2449
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Add Open File Link Example
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.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.