Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.55 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.55 KB

DEMO TIME!

A Drupal 8 module demonstrating some Stupid PDF Tricks. Created for the PDFs in Drupal session at DrupalCon Nashville 2018.

Configuration

Demo three relies on a content type to be in place with the machine name test that has a file field with the machine name field_pdf_field to work correctly.

Necessary Libraries

This session is mostly based around the libraries used to implement this functionality. Here are the component libraries you'll need to pull in to get this running, use composer to install:

  • dompdf/dompdf
  • mikehaertl/php-pdftk

But Wait! There's more!

This module also leans heavily on the PDFtk binary, so make sure that's installed on your machine. You can find the binaries here: https://www.pdflabs.com/tools/pdftk-server/

Not-So-Necessary Libraries

Many libraries were referenced in the talk but are not actually use in this module. Here they are if you're looking to implement them:

  • mikehaertl/phpwkhtmltopdf
  • h4cc/wkhtmltopdf-amd64 (there's also an i386 version; use this to install wkhtmltopdf without having to fiddle with the library!)
  • mpdf/mpdf
  • setasign/fpdi
  • setasign/fpdi-protection
  • tecnickcom/tcpdf

Drupal Modules

Some Drupal modules referenced during the talk:

  • drupal/printable (Will not install with a current version of DOMPDF)
  • drupal/entity_print
  • drupal/fillpdf