Hi,
I'm evaluating EO.Total.2016.2.23.0 to generate PDF from HTML (for a Windows 10 compliant application), my company already use EO.PDF 5.0.70.2 for this purpose.
I encounter a bug with border-radius when at least one border is 0px size, the render is not rounded.
HTML example :
Code: HTML/ASPX
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.RoundedAll
{
padding: 10px;
border-spacing: 0;
border-radius: 20px;
border: 1px solid #000;
}
.RoundedTopRight
{
padding: 10px;
border-spacing: 0;
border-top-right-radius: 20px;
border: 1px solid #000;
border-bottom: 0;
}
.RoundedTopLeftOnly
{
padding: 10px;
border-spacing: 0;
border-top-left-radius: 5px;
border-left: 1px solid #000;
}
.RoundedTopRightOnly
{
padding: 10px;
border-spacing: 0;
border-top-right-radius: 5px;
border-right: 1px solid #000;
}
.RoundedBottom
{
padding: 10px;
border-radius: 0 0 5px 5px;
border-left: 1px solid #000;
border-bottom: 1px solid #000;
border-right: 1px solid #000;
}
</style>
</head>
<body>
<div class="RoundedAll">
TEST
TEST
</div>
</br >
<div class="RoundedTopRight">
TEST
TEST
</div>
</br >
<div class="RoundedTopLeftOnly">
TEST
TEST
</div>
</br >
<div class="RoundedTopRightOnly">
TEST
TEST
</div>
</br >
<div class="RoundedBottom">
TEST
TEST
</div>
</body>
</html>
When using "UseClassicEngine", render is correct, but performance are affected.
Options used :
HtmlToPdf.Options.PageSize = EO.Pdf.PdfPageSizes.A4;
HtmlToPdf.Options.OutputArea = new RectangleF(0f, 0f, EO.Pdf.PdfPageSizes.A4.Width, EO.Pdf.PdfPageSizes.A4.Height);
HtmlToPdf.Options.ZoomLevel = 1.0f;
Furthermore, printing margin disappear with this version, but it is presents when using "UseClassicEngine".
Can you help me ?
Regards,
Pascal D6