|
Rank: Newbie Groups: Member
Joined: 8/15/2012 Posts: 2
|
I am converting a URL with image links within it. These display on the page fine and the markup is correct. However when I convert to PDF, the links around them are stretched and incorporating other text within the page. I tried setting the height of the link to be fixed to the height of the enclosed image, and this stops the link being spread out, but instead puts the link behind the image. So the image is no longer a link, but either side of it the link is present. I am using version 3.0.124.2.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I believe this was an issue that has been fixed in the latest version. Please download the latest build from our download page and that should fix the problem for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/15/2012 Posts: 2
|
Ok i've updated to the new version and my licence key is no longer working, how do we go about getting an updated one. Also links are now not underlining, and when hightlighted with css are still encorporating text around them
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
The link underlying seems to be an issue. We will look into it and get back to you as soon as possible.
As to the license, you can revisit your license key page. You have purchased it very recently, so the license key page should provide you a new key automatically.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have posted a new build that fixed the link underlying issue. Please download it from our download page.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/16/2012 Posts: 4
|
Hi,
Thanks for the fixes. Still have one outstanding issue, when colouring links within text via css, the colour speads to text within the sentence before the link, so the actual link is green and underlined but the copy before it is also green. Could you have a look at this?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We tested it and it works fine. Can you post a test page? Make sure your test contains only code needed to reproduce the problem.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/16/2012 Posts: 4
|
Here is the html before conversion
<p class="SRNormal" xmlns="http://www.w3.org/1999/xhtml">In this section of our report, we show how we’re working hard to improve the service we deliver to customers. Our <a href="/Responsiblebusiness/Ourstory/Sustainabilityreport/report/report/mat.aspx">materiality review</a> showed customer service to be our top priority as a business.</p>
Once this is converted the following is highlighted
In this section of our report, we show how we’re working hard to improve the service we deliver to customers. Our materiality review
So the link is highlighted correctly with an underline, but the text is also highlighted green. The css is as follows
.colourThemegreen .box .content li a, .colourThemegreen p a { color:#69bc2d; }
Standard stuff just to highlight links
Conversion c#:-
HtmlToPdfOptions options = new HtmlToPdfOptions(); options.GeneratePageImages = true; options.PreserveHighResImages = true; options.SaveImageAsJpeg = true; options.JpegQualityLevel = 100; options.AutoAdjustForDPI = true; HtmlToPdf.ConvertUrl(authority + path + clientId, response.OutputStream, options);
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
The text should be highlighted for a link right? Have you checked your page in a browser (use Google Chrome to check)? If the browser does not highlight and we highlight it, then you can try to isolate the problem into a self contained HTML file (with everything such as CSS in the HTML) and post that file, we will then run that file and see if we can see the problem.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/16/2012 Posts: 4
|
Yes the link highlights with the underline which is correct
So the html within the paragraph when viewed through a browser is doing the correct thing which is this:-
In this section of our report, we show how we’re working hard to improve the service we deliver to customers. Our materiality review showed customer service to be our top priority as a business.
However within the pdf the text looks like this:-
In this section of our report, we show how we’re working hard to improve the service we deliver to customers. Our materiality review showed customer service to be our top priority as a business.
So the link is highlighted by the underline and is behaving correctly, however addition text preceeding it is highlighted when a color is applied to the link.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Did you try to verify your page with Google Chrome browser?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/16/2012 Posts: 4
|
Hi
Checked in chrome and the issue was there (didnt show at all in IE ?!! what a surprise...) and was to do with the autobookmark option adding bookmarks around this peice of text. All fixed now.
Thanks for all your assistance with the other issues, you have been a great help
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
You are very welcome. Glad that you found out the root cause. Please feel free to let us know if there is anything else.
|
|