I'm having trouble,
I have charts on my pdf but they aren't showing even though i enclose them inside a container widget and give it a fixed width,
My screen looks like this
But when I download,
I get this page with no chart on it
I can't figure out what the problem might be, Please Help?
I'm basically facing the same issue (using bali), the charts are not shown in the generated PDF.
Any way to make it work?
Edit: got it to work by closely following the attached example. Thanks.
Bruno Paixao wrote:
Which binaries did u download?..The MinGW or MSVC......am using MinGW but it isn't working at all
I downloaded the "wkhtmltox-0.12.3.2_msvc2013-win64.exe" file, from the Stable release download link.
I unzipped it and extracted the "wkhtmltopdf.exe" file, which I uploaded to the administration page as shown bellow:
Now, what really made a difference, in order to be able to print the charts, was having a fixed Grid Type in the theme applied to the page I wanted to print (I created a clone of the page with a custom theme, basically, only changed the grid type option)!
Hope it helps.
I resized the container that encloses the chart to be 11 columns. (Not Fill parent). which is what this documentation suggest. Is that what you mean by changing the grid type?
Then I set the height of the chart as well. But still I get a pdf that renders the container only. Chart invisible.
Conwell Nkuna wrote:
Grid type is a theme property, see link below.
I created a custom theme, based on the application theme, I was using dublin, and i changed grid type to fixed.
I then applied that theme to the page I wanted to print. I used a copy of the page, only for printing, basically I followed the example attached by the OP. Get it here:
Hope that makes it clear.
Thanks for your help bud, unfortunately it didn't work for me.
Something is just wrong with the binaries am using. Guess I just have to figure it out.
Yeah, this one wasn't easy to get it to work, I basically tried to copy every small detail from the example the OP gave us.
He did give special attention to this:
"Always enclose the chart webblock in a container with a fixed width. You can use the grid (don't use fill parent) or plain CSS, but if you don't specify a width, the chart is likely to be missing in the PDF (at least if you use one of the components below)."
Also there's one detail that might do the trick. He uses a specific layout in the print page: it's a layout with one single placeholder for main content. Try to copy or create a similar layout, and apply it to the print page.
I any case, I made it work, and all I did was to copy every little detail in the example.