digicomp/flowwkhtmltopdfadapter

Last activity on 9 September 2020
  • 596
composer require digicomp/flowwkhtmltopdfadapter

Using pdf/snappy for a nice integration of wkhtmltopdf as ViewInterface

2.2.1

Using pdf/snappy for a nice integration of wkhtmltopdf as ViewInterface

Homepage
https://github.com/fcool/DigiComp.SettingValidator
Version
2.2.1
Type
neos-package
Release Date
15.09.2020 13:16:17
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT
  • #flow
  • #pdf
  • #wkhtmlttopdf
6c59717a703acbff4491c5d89ff7416f8b34894c

DigiComp.FlowWkhtmlToPdfAdapter

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

  • 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.

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

-
  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. ;)

The content of the readme is provided by Github
The same vendor provides 5 package(s).