Skip to content

Demo code for DrupalCon Nashville 2018 class PDFs in Drupal

Notifications You must be signed in to change notification settings

irondan/demo_time

Repository files navigation

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

About

Demo code for DrupalCon Nashville 2018 class PDFs in Drupal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages