|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
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!
|
|