root / drupal7 / sites / all / modules / views_pdf @ 2cf41c1d
Nom | Taille | Révision | Âge | Auteur | Commentaire |
---|---|---|---|---|---|
field_plugins | 11b63505 | presque 10 ans | Assos Assos | Weekly update of contrib modules | |
images | f7a2490e | plus de 10 ans | Assos Assos | git mv htmltest drupal7 | |
modules | 99781f3b | plus de 7 ans | Assos Assos | Weekly update of contrib modules | |
LICENSE.txt | 17,7 ko | f7a2490e | plus de 10 ans | Assos Assos | git mv htmltest drupal7 |
README.txt | 2,63 ko | f7a2490e | plus de 10 ans | Assos Assos | git mv htmltest drupal7 |
views_pdf.admin.inc | 1,11 ko | f7a2490e | plus de 10 ans | Assos Assos | git mv htmltest drupal7 |
views_pdf.info | 648 octets | 99781f3b | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf.install | 3,34 ko | 99781f3b | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf.make.example | 533 octets | ad751d46 | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf.module | 5 ko | e9f59ce0 | plus de 8 ans | Assos Assos | Weekly update of contrib modules |
views_pdf.rules.inc | 2,21 ko | ad751d46 | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf.views.inc | 2,46 ko | ad751d46 | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf_plugin_display.inc | 21 ko | e9f59ce0 | plus de 8 ans | Assos Assos | Weekly update of contrib modules |
views_pdf_plugin_row_fields.inc | 16,9 ko | ad751d46 | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
views_pdf_plugin_style_table.inc | 17,3 ko | e9f59ce0 | plus de 8 ans | Assos Assos | Weekly update of contrib modules |
views_pdf_plugin_style_unformatted.inc | 2,61 ko | f7a2490e | plus de 10 ans | Assos Assos | git mv htmltest drupal7 |
views_pdf_template.php | 34,5 ko | ad751d46 | plus de 7 ans | Assos Assos | Weekly update of contrib modules |
Dernières révisions
README
With the Views PDF module you can output a view as a PDF document. Each field of
the view can be placed on the PDF page directly in the administration interface.
Therefore a new display called "PDF" is added.
There are already some PDF solutions such as Print. But these solutions use the
HTML output and converts this to PDF. The disadvantages of such an integration
are:
* No control over page flow (e.g. page break).
* Little or no control over page header and footer.
* You need HTML skills to change the layout.
* The rendering is slow and need a lot of memory, because it need to render
the HTML.
* Complex tables make troubles.
* Vector graphics can not be implemented, therefore the printing of the doc-
ument can be problematic.
* You are limited by HTML's capabilities.
Installation instructions:
- Download the module or checkout the module.
- Upload the module to your Drupal instance.
- Download the required libraries. Download TCPDF and FPDI. Copy the files to the lib directory in the module directory. The path must be so: "sites/all/libraries/tcpdf/tcpdf.php" respectively "sites/all/libraries/fpdi/fpdi.php". If you are using the Libraries API then put them into the libraries folder.
- Check under reports if you setup everything correct.
- Setup a view with a PDF display.
- Use it.
Basic Usage
- Setup a new view or use an existing view. How to do this see in the documentation of the Views module.
- In the view add the display "PDF Page".
- Select the new added display.
- Select the Style. You can use PDF unformatted to place the fields in no structured way on the PDF. Use PDF table to place the fields in table with a table header.
- In the settings of the style you can setup per field settings. Such as the position, the size of the field, the font and so on. Important: Switch to the PDF Page display in the default display this options does not appear.
- Under PDF Page Setting you can setup the size of the page.
- Under PDF Font Settings you can setup the default fonts for the PDF.
- Under PDF Template Settings you can setup a background PDF.
- To add a page break, you can add a PDF page break field. When this field
is rendered new page is added. Reorder the fields if necessary.
- You can find also a page number field. You can use it to print the current page number. Important for positioning the field in the header or footer, you need to set the relative position in the field settings to "In header / footer".
Formats disponibles : Atom