Expand my Community achievements bar.

possibility to give a pdf a variable when opening?

Avatar

Former Community Member
Is it possible to give a PDF a variable. The problem is:



I want to call a pdf with a url from webbrowser. When it opens it should import a xfdf or xml-file. I'm searching for a way to tell the pdf which file to import. I thought about a param in the url but I think it's not possible. Is it possible to put a javascript in an pdf which can read a cookie in which the path to the xml-file is? Is there another way to tell a pdf file in the moment when it is opend which xml file it should import??
1 Reply

Avatar

Level 5
Try the following to capture the URL and then build your logic based on the value.

var cURL

cURL = this.baseURL

xfa.host.messageBox(cURL)



this is a JavaScript function may used in form:ready event. If you get the value displayed you can save it and use. I have no similar environment to test this myself. Please let me know how that works.



Good Luck,

SekharN

www.lawson.com