Welcome Guest Search | Active Topics | Sign In | Register

Chart.js charts not rendering same in EO as web browser Options
Paul Roskilly
Posted: Thursday, May 17, 2018 6:26:47 AM
Rank: Newbie
Groups: Member

Joined: 2/1/2012
Posts: 6
I am printing to PDF a web page that includes a chart js bar chart within a HTML canvas tag and it shows differently to when viewed in a web browser. The bars are a lot smaller and not accurate in the PDF version.

I used the live demo on essential objects web site to do this, we only have a old vserion of EO.PDF from 2011, but would probably upgrade if could get this working.
eo_support
Posted: Thursday, May 17, 2018 9:56:40 AM
Rank: Administration
Groups: Administration

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

Try to set HtmlToPdf.Options.ZoomLevel to a number smaller than 1. The default "window" for the HTML to PDF converter is a lot narrower than that of a typical browser (due to the fact that the PDF page is narrower than a typical screen). When you set the ZoomLevel to smaller than 1, it has the effect of increasing the logical width of the window.

If you still have problems, PM us the Url and we will take a look.

Thanks!
eo_support
Posted: Monday, May 21, 2018 9:02:58 AM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have found the root of the problem. Code change on our end is needed to fix this issue so it will be addressed in our next build. We will reply again as soon as the new build is available.

Thanks!
eo_support
Posted: Friday, June 1, 2018 10:27:12 AM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have posted a new build (18.1.91) that should resolve this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

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.