Note to all:
this module is majorly messed up – am leaving this warning here until http://drupal.org/node/1494820 is resolved – briefly the template files get deleted and the output becomes munged after ~1,000 pdfs are generated. Also while some of my early tests were cranking ~100-200 pdfs per minute we’re seeing results now in the 3-5 per minute making this module unusable for large scale projects. here’s a patched version for D6views_pdf-patched
Views PDF allows you to output the results of a view onto a PDF. You can even upload an existing PDF to use a background template – pretty cool. For the Audio Visually inclined here’s your 3 minutes of fun. http://www.youtube.com/watch?v=PszjYSq7xQQ
Use Case: Generate 40,000 PDF’s with a user’s name on them and some other predefined fields and make these files accessible to the user for download.
Problem: creating the PDF’s on the fly is slow – so we need to have them all pre-generated
Solution: Used Cottser‘s writeup here http://drupal.org/node/1415380#comment-5701968 and modified it to be a rule set instead of a rule – with argument type node. Under that added one rule that ended up looking like this
As you can see the rule requires a pdf view – so hopefully you’ve already got one of them here are some shots of mine
and here are
the argument settings. Now earlier we mentioned that the pdf needs to be accessible to users, so back over in our rule set we take an action – we load a referenced user (the user is referenced in the node itself through a user reference cck field) so our final rule set ends up looking like this
Ok – almost finished. Now that we have a rule set we need to add this to a views bulk operation view so that we can “do the deed.”
Once your Rule Set is added to your VBO you may use it with any set of nodes you like. On our VMWare machine we were churning ~200 pdfs per minute, not too shabby.