Welcome Guest Search | Active Topics | Sign In | Register

Link for file in ASPXtoPDF Options
developer va
Posted: Tuesday, August 2, 2016 11:13:23 PM
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.
eo_support
Posted: Friday, August 5, 2016 3:11:45 PM
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!
developer va
Posted: Friday, August 5, 2016 3:18:19 PM
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.
eo_support
Posted: Friday, August 5, 2016 5:25:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Please use this thread for further communication about this issue:

http://www.essentialobjects.com/forum/postst9978_ASPXtoPDF-table-of-contents.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.