Rank: Newbie Groups: Member
Joined: 8/2/2016 Posts: 3
|
We have dynamic content converted to pdf using ASPXtoPDF. We have pdf links to files in the content that need to be opened. Created pdf and linked pdfs are in same folder on the drive. But these links are converted as web links and opening as downloads in browser. Tried using "file:///path to link" but this is also converted as weblink. We want these links to work even though files(generated pdf and linked pdf's) are moved to different folder on the machine.
Tried using ACM link and it works for static text but confused on how to use it with aspxtopdf.
Can you please suggest how to use links for files in the pdf? If links for files can created using only ACM link then how link created in ASPXtoPDF can be replaced with ACM links.
Thanks for your time.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We have tested the latest build and using a file Url works fine. For example, if you use "file://c:/test.pdf", then that Url will be preserved.
The rule of the link Url is that:
1. If it is an absolute Url, then it will be preserved. For example, Urls such as "file://c:/test.pdf", "http://www.google.com/test.pdf", will be preserved as is; 2. If it is a relative Url, then it will be combined with your current page's BaseUrl. For example, if you are converting a page "http://www.yoursite.com/App1/Page1.aspx" and you have <a href="pdfs/test.pdf"></a> in your HTML, then "pdfs/test.pdf" will be combined with your base Url "http://www.yoursite.com/App1" and forms the full Url of "http://www.yoursite.com/App1/pdfs/test.pdf".
Hope this helps. Please let us know if you see something differently.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 8/2/2016 Posts: 3
|
Is it possible to use relative URL for the file? We need it to be combined with the base url of the generated pdf. When these files are moved to different folder on machine how can we make the links preserved.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
|