|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
I have one html-pdf converted file in which the internal links are trying to link externally. I have an A tag:
Code: HTML/ASPX
<a id="null" class="mapPin MapPushpinBase" href="#ID_1" style="position: absolute; cursor: inherit; left: 73.8861px; top: -17.7731px; width: 20px; height: 34px;">
<img src="images/colour004.png">
<div id="marker_1" style="position: absolute; text-align: center; width: 100%; font: bold 10pt Arial,Helvetica,Sans-Serif; color: rgb(255, 255, 255); left: 0px; top: 0px;">1</div>
</a>
And I have a link on another page:
Code: HTML/ASPX
<div style="page-break-before: always">
<a name="ID_1"></a>
This is ID 1
</div>
However clicking the first A tag tries to send me outside of the PDF. The URL for this html is http://localhost/maphazardspro_q3_2013/ASTM05Map.aspx?MapSize=900x900&Zoom=17&ShowSites=1&MinZoomDist=2&ReportID=%20dfjdf%20k%20hdfk%20f&ClientID=1So the link it is trying to go to is http://localhost/maphazardspro_q3_2013/ASTM05Map.aspx?MapSize=900x900&Zoom=17&ShowSites=1&MinZoomDist=2&ReportID=%20dfjdf%20k%20hdfk%20f&ClientID=1#ID_1I tried the following to no avail:
Code: Visual Basic.NET
EO.Pdf.HtmlToPdf.Options.BaseUrl = "http://localhost/maphazardspro_q3_2013/ASTM05Map.aspx?MapSize=900x900&Zoom=17&ShowSites=1&MinZoomDist=2&ReportID=%20dfjdf%20k%20hdfk%20f&ClientID=1"
I tried this with a simpler HTML file and it worked as expected. Is there some problem with querystrings? Or am I doing something wrong? Thanks, Brad
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Link conversion only occurs within the SAME CONVERSION. So if you call ConvertHtml twice on two HTML segments, even if you output into the same PDF file, links from conversion A will NOT reference link to conversion B. If you want the links to work, you will need to merge the HTML together first, then run them through the converter through a single conversion.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
Actually , this is in one conversion with one URL.
I will try to get some time this evening to put it on a public facing server.
Brad
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
If you can isolate the problem into a test HTML file you can email the file to us directly. We will PM you as to where to send.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
The new build fixed the problem. All good now!
|
|