Search code examples
drupaldrupal-6pdf-generationdrupal-views

drupal views: how to add generate pdf link in views


I have to add generate pdf links in the view how to that... When the user clicks on the generate pdf links pdf should be generated which contains the content information of that node...


Solution

  • I think what you need is to install the print module and enable the printing. You'll then notice a link structure for Print. I think its different in 5.x than it is in 6.x but basically you'll end up with a link like http://example.com/print/pdf/530 (or similar) to print node 530. So for your Views 2.x you can add a field that outputs a link, which you can then use print/pdf/[nid]. To get nid, I believe you'll need to add a "relationship" to the View which stores the nid.