I am exporting data from SDE to PDF and would like url's associated with each grid to open a file.
I have created the path for each url within an attribute creator and associated it with the PDFSTYLER.
Here is the "corrupt" url when you click it in the PDF:
Here is the Tooltip showing the proper data for URL (same is used for the URL):
Here is the details within the PDF of the URL box showing it carried over correct:
If you change it opening weblink or opening a file etc etc doesnt change the way it adds all those random symbols in the link when you actually link it.
As a test I would try and paste your proper file path into a browser like chrome to see what happens. You may notice that the browser automatically changes the \ to forward slashes and includes a file:// at the beginning of the URL.
Consider changing the AttributeCreator to something more like what you see in the browser - perhaps something more like this:
If the N drive is a network drive I would recommend using a UNC path instead of having your path mapped to 'N'.
The other thing which I notice is that for some reason the '&' character is getting dropped. In the site linked above I see that & is equivalent to %26 so perhaps even this would work better:
As a test I would try and paste your proper file path into a browser like chrome to see what happens. You may notice that the browser automatically changes the \ to forward slashes and includes a file:// at the beginning of the URL.
Consider changing the AttributeCreator to something more like what you see in the browser - perhaps something more like this:
If the N drive is a network drive I would recommend using a UNC path instead of having your path mapped to 'N'.
The other thing which I notice is that for some reason the '&' character is getting dropped. In the site linked above I see that & is equivalent to %26 so perhaps even this would work better:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.