Welcome Guest Search | Active Topics | Sign In | Register

Problems when rendering images Options
Simon Scheurer
Posted: Monday, February 9, 2015 4:00:11 AM
Rank: Advanced Member
Groups: Member

Joined: 5/14/2013
Posts: 45
Hello,

We are having problems when rendering images. Some of the images that appears in the rendered pdf are just partially rendered.

We are using the ConvertUrl method (HtmlToPdf.ConvertUrl(this.url, path, configuration))

And we have tried these configurations options:
1. Eo pdf default options
2. noCache="true" autoFitX="ScaleToFit" autoBookmark="true" sSLVerificationMode="None" generatePageImages="false" headerHtmlPosition="0.4" minLoadWaitTime="0" maxLoadWaitTime="30000" headerHtmlFormat="HeaderFormat" footerHtmlFormat="FooterFormat"
<additionalHeaders>
<additionalHeader name="HeaderName" value="HeaderValue"/>
</additionalHeaders>
<cookies>
<cookie name="HeaderName" value="HeaderValue"/>
</cookies>
and result is always the same.

You can see the problem by using your demo page (demo page), entering the url: http://www.ubs.com, the generated pdf does not render the ubs logo properly.


Any idea?
Thanks.
eo_support
Posted: Monday, February 9, 2015 9:54:43 PM
Rank: Administration
Groups: Administration

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

We have looked into this issue. The root of the issue is our svg processor does not have a default fill color. The ubs logo file is an svg file with two paths, one for the word "UBS" and the other part is the part that is not showing. The svg source for this part does not have a fill color. For example:

Code: XML
<path d="...path data...." />


Our converter does not render such path because this is just a path definition, it's neither stroked nor filled. If you add a fill color to it:

Code: XML
<path fill="black" d="...path data...." />


Then it will be rendered correctly. It appears modern browsers default to fill="black" when it is omitted. We do not have this default option yet. We are planing to update our core rendering engine in our next release, once that is out, it should have the same default behavior as other browsers. In the mean time, you can try to add fill color to your SVG if possible.

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.