项目作者: bithost-gmbh

项目描述 :
TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.
高级语言: PHP
项目地址: git://github.com/bithost-gmbh/pdfviewhelpers.git
创建时间: 2016-08-14T19:39:25Z
项目社区:https://github.com/bithost-gmbh/pdfviewhelpers

开源协议:GNU General Public License v3.0

下载


TYPO3
TYPO3
Build Status
Packagist Downloads
Donate

TYPO3 CMS Extension pdfviewhelpers

Introduction

This is a TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.
Using the ViewHelpers from this extension you can make any Fluid template into a PDF document.
The extension pdfviewhelpers is using TCPDF and FPDI for the PDF generation.

Key features

  • ViewHelpers to render text and lists
  • ViewHelper to render images (supporting FAL and image processing)
  • ViewHelpers to repeatedly render header and footer
  • ViewHelper to render HTML / rich-text content
  • ViewHelper to avoid page breaks inside
  • ViewHelpers to create a multi column layout
  • ViewHelpers to create a table of content
  • Load existing PDF documents as template
  • Define and apply different text types easily
  • Fully customizable by writing your own ViewHelpers
  • Supports batch creation of PDFs
  • Supported output destinations: string, inline, download and file
  • Usable both in frontend and backend
  • Rich inheritance based TypoScript settings
  • Rich API documentation with lots of examples

Support Development

With the extension pdfviewhelpers we try to take the pain out of creating PDF documents.
We aim at providing the best service possible by constantly improving the extension and responding fast to bug reports.
We do this fully free of cost, mostly because we love to code and share. However we are still human and have human needs like food, shelter and beer.
So if you feel like this extension was useful to you and saved you and your business some precious time, please consider making a donation to support its maintenance and further development.

PayPal

Topic Link
Bug Tracker https://github.com/bithost-gmbh/pdfviewhelpers/issues
Git Repository https://github.com/bithost-gmbh/pdfviewhelpers
TER https://typo3.org/extensions/repository/view/pdfviewhelpers
Packagist https://packagist.org/packages/bithost-gmbh/pdfviewhelpers
Full Documentation https://docs.typo3.org/p/bithost-gmbh/pdfviewhelpers/master/en-us/
Changelog https://github.com/bithost-gmbh/pdfviewhelpers/blob/master/CHANGELOG.md
Sponsoring PayPal
Contact @maechler, @macjohnny, https://www.bithost.ch/kontakt/

Example

Fluid Template

  1. <html xmlns="http://www.w3.org/1999/xhtml"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
  4. xmlns:pdf="http://typo3.org/ns/Bithost/Pdfviewhelpers/ViewHelpers"
  5. xsi:schemaLocation="http://typo3.org/ns/Bithost/Pdfviewhelpers/ViewHelpers https://pdfviewhelpers.bithost.ch/schema/3.0.xsd"
  6. data-namespace-typo3-fluid="true">
  7. <pdf:document outputDestination="inline" title="Bithost Example">
  8. <pdf:header>
  9. <pdf:image src="EXT:pdfviewhelpers/Resources/Public/Examples/BasicUsage/logo.png" width="40" ></pdf:image>
  10. <pdf:text alignment="right" color="#8C8C8C" paragraphSpacing="0" posY="15">
  11. Bithost GmbH
  12. Milchbuckstrasse 83
  13. CH-8057 Zürich
  14. hallo@bithost.ch
  15. 044 585 28 20
  16. www.bithost.ch
  17. </pdf:text>
  18. </pdf:header>
  19. <pdf:footer>
  20. <pdf:graphics.line style="{color: '#8C8C8C'}" ></pdf:graphics.line>
  21. <pdf:text color="#8C8C8C">Page {pdf:getPageNumberAlias()}</pdf:text>
  22. <pdf:text alignment="right" color="#8C8C8C" posY="-13.5">EXT:pdfviewhelpers - Basic usage example</pdf:text>
  23. </pdf:footer>
  24. <pdf:page>
  25. <pdf:text posY="50" padding="{bottom: 4}" color="#8C8C8C">
  26. Zurich, <f:format.date format="d.m.Y" >now</f:format.date>
  27. </pdf:text>
  28. <pdf:headline>Welcome to the extension pdfviewhelpers</pdf:headline>
  29. <pdf:text>Lorem ipsum [..] diam voluptua:</pdf:text>
  30. <pdf:headline>Some more information</pdf:headline>
  31. <pdf:multiColumn>
  32. <pdf:column width="55%">
  33. <pdf:text>
  34. Lorem ipsum [..] voluptua:
  35. </pdf:text>
  36. <pdf:list listElements="{0: 'Full Stack Application Development', 1: 'Modernizing, Refactoring [..]'}" ></pdf:list>
  37. <pdf:text>
  38. Lorem ipsum [..] sit amet.
  39. </pdf:text>
  40. </pdf:column>
  41. <pdf:column width="45%" padding="{left: 2}">
  42. <pdf:image src="EXT:pdfviewhelpers/Resources/Public/Examples/BasicUsage/Bithost.jpg" link="https://bithost.ch/" ></pdf:image>
  43. <pdf:text padding="{top: 1}" color="#8C8C8C">Esteban Gehring, Markus Mächler</pdf:text>
  44. </pdf:column>
  45. </pdf:multiColumn>
  46. <pdf:text>Lorem ipsum [..] sit amet.</pdf:text>
  47. <pdf:text>Lorem ipsum [..] sit amet.</pdf:text>
  48. </pdf:page>
  49. </pdf:document>
  50. </html>

PDF Output

Example PDF output