Google chart is not printing in the pdfkit generated PDF file

209 views
Skip to first unread message

Mohsin Ali

unread,
Jul 9, 2020, 11:08:06 AM7/9/20
to Google Visualization API
Hi,

The following command is generating a blank PDF file. The expected outcome is printing the Google chart in the generated PDF file. I used pdfkit==0.6.1 and set the pie.html file path properly. Everything was working as expected until December 2019 (as far as I can remember).

$ python3
Python 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pdfkit
>>> pdfkit.from_file('pie.html', 'out.pdf')
Loading pages (1/6)
Counting pages (2/6)                                              
Resolving links (4/6)                                                      
Loading headers and footers (5/6)                                          
Printing pages (6/6)
Done                                                                     
True
>>>

This is only happening to me or not I am not sure.

Regards,
Mohsin
pie.html

Wolf Bergenheim

unread,
Jul 9, 2020, 11:36:32 AM7/9/20
to google-visua...@googlegroups.com
Works for me. Maybe some issue with your version of pdfkit? I have version 0.6.1

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/11839e08-9f9c-41db-be98-5fa06224994bo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages