views:

876

answers:

5

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...

A: 

To create a printable PDF from a node, I would check out this module: http://drupal.org/project/print.

bkildow
that is to generate from node i need to generate from view ..how we gonna do that....
rakesh
A: 

If you use "Row Style: Node" in your view and you have the pdf option of the print module on then the pdf link will appear in your view. If the default Node view doesn't work for you, you can tweak it using the Content Template module (http://drupal.org/project/contemplate).

Beyond that I think it would take a custom module.

Jared
+1  A: 

Place this code in header or footer of views as php code:

<?php
print print_pdf_insert_link(); 
?>
Nikit
i mean for Print module.
Nikit
A: 

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.

Chris Ridenour
A: 

I have the same problem. I put <?php print print_pdf_insert_link(); ?> in the header section of the view, but the printing link/icon won't appear. Anyone know a solution?

Doktor83