2017 © Pedro Peláez
 

typo3-flow-package flowwkhtmltopdfadapter

image

digicomp/flowwkhtmltopdfadapter

  • Wednesday, February 22, 2017
  • by fcool
  • Repository
  • 2 Watchers
  • 0 Stars
  • 388 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

DigiComp.FlowWkhtmlToPdfAdapter

This package provides a PdfView for your ActionController., (*1)

Introduction

The PdfView connects up to three Fluid templates: - header-html (optional): The defaultPath is @templateRoot/@subpackage/@controller/@action.PDFHead.html - body-html (required): The defaultPath is @templateRoot/@subpackage/@controller/@action.PDFBody.html - footer-html (optional): The defaultPath is @templateRoot/@subpackage/@controller/@action.PDFFoot.html, (*2)

header-html and footer-html will only be used if found., (*3)

Additionally, you may set ALL options Knp\Snappy (an abstraction of wkthmltopdf) understands in your Views.yaml to configure your PdfView:, (*4)

-
  requestFilter: "isFormat('pdf')"
  viewObjectName: "DigiComp\\FlowWkhtmlToPdfAdapter\\View\\PdfView"
  options:
    marginLeft: "0mm"
    marginRight: "0mm"
    marginTop: "0mm"
    marginBottom: "0mm"

If you have to use wkhtmltopdf with unpatched Qt you could activate the usage of Xvfb, but really: I would not recommend that. ;), (*5)

The Versions