|
Rank: Newbie Groups: Member
Joined: 4/22/2014 Posts: 5
|
I convert html page to PDF, the internal links is not working when it get converted to PDF , instead of opening #id for the anchor id, it open the page url and add #id to it
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Do you have the page online so that we can take a look?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/22/2014 Posts: 5
|
actually the site is kind secured, i have the following link <a href="#ID_1" >test</a> then i have this anchor at the bottom of the MVC template <a id="ID_1">here</a> but when i click on test inside the pdf it redirect me to http://localhost:50452/page/183?j=A2%3B362C162#ID_1
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please check whether you are running the latest version of EO.Pdf. I believe earlier version of EO.Pdf only recognizes name attribute. So it has to be something like this:
So for those versions if you use ID attribute then it won't work. You can try to change it to name attribute and see if it works. If you use the latest build, then both name and id should work. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/22/2014 Posts: 5
|
Thank you for your reply, i'm using version 4.0.54.2 i tried to use the name as the following <a id="ID_1" name="ID_1">here</a> but still not working, and i doubt it will ,it seems that the problem is more related to the link itself <a href="#ID_1" >test</a>
|
|
Rank: Newbie Groups: Member
Joined: 4/22/2014 Posts: 5
|
is their any example of adding an internal link?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Please try these:
1. Check if it works in the latest build. If if works in the latest build, you might want to consider upgrade to the latest version. We provide one year free upgrade after the purchase. So you might qualify for a newer version that will just work fine for you. If you can provide your order #, then we check for you;
2. Try to remove or change your query string. There might be some problems with query string encoding in earlier versions. So try to remove that and see if it works for you. For example, instead of using 183?j=A2%3B362C162, you can try to use "183?j=123", I understand that probably won't work with your application logic but this is just a test to see whether the problem has to do with query string encoding;
3. If you use HtmlToPdf.ConvertHtml to convert your HTML to PDF, then you MUST set HtmlToPdf.Options.BaseUrl correctly;
Let us know how it goes.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/22/2014 Posts: 5
|
yes, it does work with the latest version, Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
In that case you can PM us your order number and we will check if you qualify for a free upgrade, and if you do not, how much it will cost for you to upgrade to the latest version.
Thanks!
|
|