Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF border-radius Options
Pascal D6
Posted: Monday, October 3, 2016 9:49:27 AM
Rank: Newbie
Groups: Member

Joined: 10/3/2016
Posts: 2
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
eo_support
Posted: Monday, October 3, 2016 11:18:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,074
Hi,

The corner issue is an issue in the chromium V49 browser engine that we use. We will be updating to a newer version soon and once that is done this issue should be fixed.

I am not sure what you meant by "printing margin disappear". Can you elaborate?

Thanks!
Pascal D6
Posted: Monday, October 3, 2016 11:44:30 AM
Rank: Newbie
Groups: Member

Joined: 10/3/2016
Posts: 2
Hi,

Ok for the chromium issue, when do you schedule the update ?

For the "printing margin", with the same HtmlToPdf.Options (as described above), the new version "print" directly at position 0,0 of the pdf document; whereas with the old one or the new one with the option "UseClassicEngine", you have a margin for the document of 2px (approximately).
You can download this 2 pdf examples : https://we.tl/f95IItMi01
eo_support
Posted: Monday, October 3, 2016 3:50:36 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,074
Hi,

We are planing to have test build ready around year and final build ready early next year.

The border option in the new engine is by design. The new engine does not count margin and padding settings on the "body" element. This way if you set OutputArea to (0, 0), then the actual output will start at (0, 0) with no margins. This is more consistent with what people would expect.

Please feel free to let us know if you have any more questions.

Thanks!
Pascal
Posted: Tuesday, January 10, 2017 8:09:15 AM
Rank: Newbie
Groups: Member

Joined: 12/5/2016
Posts: 1
Hi,

What about the test version with updated chromium ?

Thanks for your help.
eo_support
Posted: Tuesday, January 10, 2017 5:27:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,074
Hi,

We have been doing beta testing with a number of customers. The official build will be out either this week or next week.

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.