2017 © Pedro Peláez
 

typo3-flow-package flowwkhtmltopdfadapter

image

digicomp/flowwkhtmltopdfadapter

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

The README.md

DigiComp.FlowWkhtmlToPdfAdapter

This Package provides a pdf View for your TYPO3\Flow ActionControllers. This view connects up to three Fluid Templates:, (*1)

  • body-html (required, defaultPath: @templateRoot/@subpackage/@controller/@action.PDFBody.html)
  • header-html (optional, defaultPath: @templateRoot/@subpackage/@controller/@action.PDFFoot.html)
  • footer-html (optional, defaultPath: @templateRoot/@subpackage/@controller/@action.PDFHead.html)

Header-html and footer-html will be used, if found., (*2)

Additionally you may set ALL options KNP\Snappy (a wkthmltopdf-Abstraction) understands in your Views.yaml to configure your PDF View., (*3)

-
  requestFilter: 'isFormat("pdf") && isController("Invoice")'
  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 Xvfb-Usage, but really: I would not recommend that. ;), (*4)

The Versions