famelo/pdf

Last activity 23 Jan 2025 18 18 70657
composer require famelo/pdf

Provides a quick and simple way to generate a PDF from a Fluid Template through the MPDF library

1.0.x-dev

Version
1.0.x-dev
Type
typo3-flow-package
Release Date
Aug 12, 2016 21:28
Source
git
Distribution
zip
Requires
  • typo3/flow: *
  • mpdf/mpdf: *
Suggest
  • knplabs/knp-snappy: wkhtmltopdf wrapper to use the WebkitGenerator
  • itbz/fpdi: fpdi library to use the FpdiGenerator
5de2779c28e33bbd2dada3aa981de3a5aee12390

Readme excerpt

Famelo.PDF

This package provides a quick and simple way to generate a PDF from a Fluid Template through the MPDF library

Example:

$document = new \Famelo\PDF\Document('My.Package:SomeDocument'); $document->assign('someVariable', 'foobar'); // Trigger a Download and exit $document->download('SomeDocument ' . date('d.m.Y') . '.pdf'); // Show the document inline and exit $document->send(); // Save the document to a local file $document->save('/Some/Path/SomeDocument ' . date('d.m.Y') . '.pdf');

This example will render a template located at 'resource://My.Package/Private/Documents/SomeDocument.html and convert it to PDF.

Page Format and o…
Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.