Welcome Guest Search | Active Topics | Sign In | Register

Internal links is not working Options
Adam
Posted: Tuesday, April 22, 2014 3:58:54 PM
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
eo_support
Posted: Tuesday, April 22, 2014 4:03:58 PM
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!
Adam
Posted: Tuesday, April 22, 2014 4:18:25 PM
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
eo_support
Posted: Tuesday, April 22, 2014 4:29:00 PM
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:

Code: HTML/ASPX
<a name="ID_1">here</a>


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!
Adam
Posted: Tuesday, April 22, 2014 5:40:12 PM
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>
Adam
Posted: Wednesday, April 23, 2014 9:45:03 AM
Rank: Newbie
Groups: Member

Joined: 4/22/2014
Posts: 5
is their any example of adding an internal link?
eo_support
Posted: Wednesday, April 23, 2014 10:03:10 AM
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!
Adam
Posted: Thursday, April 24, 2014 4:26:10 PM
Rank: Newbie
Groups: Member

Joined: 4/22/2014
Posts: 5
yes, it does work with the latest version, Thank you
eo_support
Posted: Thursday, April 24, 2014 4:34:05 PM
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!


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.