I am dealing with the same problem as you.
Feb 1, 2017
3
Level 1
Snappy cannot convert DataTable to PDF
I am using Snappy for exporting to PDF (which uses wkhtmltopdf). But with DataTables I am getting this error:
RuntimeException in AbstractGenerator.php line 336:
The exit status code '1' says something went wrong:
stderr: "Loading pages (1/6)
[> ] 0%
[======> ] 10%
[==============> ] 24%
[================> ] 27%
[=================> ] 29%
[=====================> ] 35%
[========================> ] 40%
[=========================> ] 43%
[===========================> ] 46%
[====================================> ] 60%
[===========================================> ] 72%
[=============================================> ] 75%
[==============================================> ] 78%
[================================================> ] 81%
[=================================================> ] 82%
[===================================================> ] 86%
[============================================================] 100%
Counting pages (2/6)
[============================================================] Object 1 of 1
Resolving links (4/6)
[============================================================] Object 1 of 1
Loading headers and footers (5/6)
Printing pages (6/6)
[> ] Preparing
[========> ] Page 1 of 7
[================> ] Page 2 of 7
[=========================> ] Page 3 of 7
[==================================> ] Page 4 of 7
[==========================================> ] Page 5 of 7
[===================================================> ] Page 6 of 7
[============================================================] Page 7 of 7
Done
Exit with code 1 due to network error: ProtocolInvalidOperationError
"
stdout: ""
command: /usr/local/bin/wkhtmltopdf --lowquality --dpi '100' --image-quality '100' --margin-top '0' --orientation 'portrait' --page-size 'a4' --enable-javascript --javascript-delay '10000' --no-stop-slow-scripts '/tmp/knp_snappy5892170450c9f0.06901819.html' '/tmp/knp_snappy5892170450d5c1.44857247.pdf'.
Any ideas why? I've enabled javascript for wkhtmltopdf and it exports everything fine except these DataTables... :@
Please or to participate in this conversation.