Welcome Guest Search | Active Topics | Sign In | Register

Is EO.PDF support SVG Gradient color? Options
CHIEN
Posted: Thursday, September 5, 2013 8:30:30 PM
Rank: Member
Groups: Member

Joined: 9/4/2013
Posts: 18
Dear EO Team,

We are test SVG in EO.PDF , It is working ,but we still found a little problem ,
It seem the Gradient Color is not support ?

the original SVG in browser


the PDF we rendered


the HTML we used
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div>
<svg height="814" version="1.1" width="1053" xmlns="http://www.w3.org/2000/svg" style="overflow: hidden; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-select: none; cursor: default; position: relative; background-color: rgb(255, 255, 255);">

<defs>
<radialGradient id="cc" gradientUnits="userSpaceOnUse" r="353" cx="526.5" cy="407" fx="526.5" fy="407">
<stop offset="0%" stop-color="#ff0000" stop-opacity="0.9"></stop>
<stop offset="100%" stop-color="#0000ff" stop-opacity="0.9"></stop>
</radialGradient>
</defs>
<g>
<path fill="url('#cc')" stroke="#d0e4f4" d="M870.0228597347916,488.2468143352753A353,353,0,1,1,879.4915143930284,404.55239575985007L526.5,407Z" stroke-width="1" stroke-linejoin="round" stroke-opacity="0.8" opacity="1" fill-opacity="1" style="stroke-linejoin: round; opacity: 1; fill-opacity: 1; cursor: pointer;"></path>
</g>
</svg>
</div>
</body>
</html>

can you help us to make <radialGradient> tag work in PDF?
it really is a big problem for us.

Thank you


eo_support
Posted: Thursday, September 5, 2013 9:29:12 PM
Rank: Administration
Groups: Administration

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

This is a bug. We have posted a new build that should fix this problem for you. We will send you a private message with the download location of the new build.

Thanks!
CHIEN
Posted: Friday, September 6, 2013 1:32:28 AM
Rank: Member
Groups: Member

Joined: 9/4/2013
Posts: 18
Thank you ,new build solved the problem !!!
really appreciate it.

and one more thing ... can you also fix the Gradient Color in PageImages ?

Code below still not showing Gradient Color

HtmlToPdfResult result = HtmlToPdf.ConvertUrl("http://localhost//fusion.aspx", "c:\\fusion.pdf");
System.Drawing.Image pageImage = result.PageImages[0];
pageImage.Save("c:\\fusion.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

Best Regards,
Chien
eo_support
Posted: Friday, September 6, 2013 3:29:47 PM
Rank: Administration
Groups: Administration

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

The page images are now fixed as well. We will PM you with the download location.

Thanks!
CHIEN
Posted: Friday, September 6, 2013 5:58:34 PM
Rank: Member
Groups: Member

Joined: 9/4/2013
Posts: 18
Thank you very much!!!
eo_support
Posted: Friday, September 6, 2013 6:49:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
You are very welcome. Please feel free to let us know if there is anything else.


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.