PDF format settings

This module provides an extension for Views data export module to export data to PDF.

Installation

  • Download the pdf_serialization module via Composer: composer require drupal/pdf_serialization.
  • Enable modules pdf_serialization along with dependent modules.

Creating a PDF view

  1. Create a new view or edit an existing one.
  2. Add a Data Export display.
  3. In the format section select format settings and choose 'pdf'. Expand PDF settings to set preferable page format and footer.
  4. Add desired fields to the view.
  5. Add a path, and optionally, a filename pattern.
  6. Optionally attach export icon to the page.

Known problem

Batch export method requires batch process workaround in DataExport view display plugin. views_data_export-3204269-8.patch this patch fixes the issue.
See how to apply patch.

The differences from Entity print module:

  • PDF Serialization uses Views data export module functionality.
  • Administrator must enable Entity print and Entity print views modules to have a possibility to add an exportation link to the view in Header or Footer section. With PDF Serialization you just add a new data export display (that can have different (e.g. master or page display) configurations).
  • PDF Serialization is more lightweight.
  • Entity print uses DOMPDF library. PDF Serilization uses MPDF library.

Dependencies

Supporting organizations: 

Project information

Releases