PDF Generation with Symfony2 – Part I: SnappyBundle Experience

Update: I apologize for the strong wording I had posted earlier. Basically it is out of frustration. However I do think SnappyBundle does a great job. It is just that I was looking to do something different while manipulating pdfs.

So after I fought with it for long hours and posted an issue to the repo:

Broken get contents
============
Warning: file_get_contents(/tmp/knplabs_snappyf35hGd.pdf): failed to open stream: No such file or directory in /home/cordoval/sites-2/x/vendor/knplabs/snappy/src/Knplabs/Snappy/Media.php line 87
your syntax is jeopardizing the whole thing too, tried several variants but the same trouble
'Content-Disposition' => 'attachment; filename="file.pdf',
see the missing quotes?
grrr so frustrating.

I realized that it had to be another solution.

Leave a Reply

Your email address will not be published. Required fields are marked *