New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black background showing in PDF #1380
Comments
Hey, what pdf tool are you using? |
Hi,I used jsPDF library for PDF. |
Thanks.. |
It's much probably something to do with the jsPDF library. Change the default fill color in the library settings or something like that. |
what i did is to convert the flot canvas to image using 'toDataUrl' and If I need to print more content than just the PDF, my solution was to use Both cases worked pretty well for me. |
I had the same problem and used this solution: http://stackoverflow.com/questions/25253015/flot-renders-png-image-with-a-different-background-color-than-it-does-in-browser. The problem is that jpeg turns transparency into black. I'm sure it's not the best way, but it works. Did anybody else figure out a better solution? @dineshhh86 ? EDIT: Actually that turned out to screw the axis labels when I added them to the pdf. My solution was then to change to PNG, but now opening the pdf in a new tab using doc.output('dataurlnewwindow') no longer works in chrome, works fine in Mozilla... I solved that by switching to doc.save('testImage.pdf'); to download the pdf, but would much rather have it open in a new window if at all possible. See fiddle here: http://jsfiddle.net/8tLt9yof/10/ (works in Mozilla Firefox). |
Hi ,
I am using flot to draw a chart in canvas container , I try to export chart to PDF , But black background is showing around the chart in PDF file. and My PDF file is showing a result as given below, How can I remove this black background ?
i am using
plottime = $.plot($('#graph-bars-timetofill'), [
{
data: finaldata,
color: '#5bc0de',
backgroundColor: '#FFFFFF',
bars: {
show: true
}
}
], {
series: {
can you please help on this issue
Thanks,
Dinesh Patel
The text was updated successfully, but these errors were encountered: