2017 © Pedro Peláez
 

silverstripe-module silverstripe-generatepdf

This module generates a PDF version of a page

image

dnadesign/silverstripe-generatepdf

This module generates a PDF version of a page

  • Thursday, July 28, 2016
  • by alex-dna
  • Repository
  • 14 Watchers
  • 2 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Silverstripe GeneratePDF

Introduction

This extension allow for a PDF version of any page to be created and served either via a direct link to the generated file or via a method that triggers the download of the generated pdf., (*1)

Requirements

Installation

composer require "dnadesign/silverstripe-generatepdf" "dev-master"

Extend any page type with the GeneratePDF extension as well as the page type controller with GeneratePDF_Controller extension. This can be done via the SilverStripe YAML config API, (*2)

mysite/_config/app.yml, (*3)

Page:
  extensions:
    - GeneratePDF

Page_Controller:
  extensions:
    - GeneratePDF_Controller

Define WKHTMLTOPDF path To use the library locally, you can define the path in the yaml file, (*4)

Page:
    wkhtmltopdf_binary: /usr/local/bin/wkhtmltopdf

Configuration

The AutoGeneratePDF extension refreshes the generated pdf upon publish. Everytime you republish a page with the extension GeneratePDF, the previous version of the pdf is deleted and a new one is recreated, keeping the generated file always up-to-date with the live version., (*5)

Page:
  extensions:
    - AutoGeneratePDF

The PublishRefreshPDF allow for subpage to publish automatically the parent page in order to regenerate the pdf. It can also be used with silvertsripe-elemental to trigger the page publish when a widget (element) is published., (*6)

SubPage:
  extensions:
    - PublishRefreshPDF

 BaseElement:
  extensions:
    - PublishRefreshPDF

The Versions

28/07 2016

dev-master

9999999-dev

This module generates a PDF version of a page

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexandre Saelens

silverstripe pdf