Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
Attach a dynamic PDF to Email
With Fluid-Form you're able to create a dynamic PDF immediately and attach it to your mails. For that you can choose if the PDF should attached only to the receiver mail or attached to the sender mail as well. The configuration can be done in the receiver
or sender
node of the configuration.
Following example generates a PDF in the attachment for the mail receiver:
- Keep care that the Fluid-FPDF extension is installed.
- Enable the PDF setting within your form configuration:
plugin.tx_fluidform.settings.forms.warrantyRegistration { finisher.mail.receiver.pdf.attach = 1 }
- Configure an optional background PDF:
plugin.tx_fluidform.settings.forms.warrantyRegistration { configuration.pdf.receiver.background = EXT:theme_eibach/Resources/Private/Extensions/FluidForm/Pdf/Normbriefbogen_DIN5008.pdf }
- Configure the filename of the attached file:
plugin.tx_fluidform.settings.forms.warrantyRegistration { finisher.mail.receiver.pdf.filename = Materialgarantie.pdf }
- Override the Template path of the PDF-Template:
plugin.tx_fluidform.settings.forms.warrantyRegistration { configuration.pdf.receiver.templateRootPath = EXT:theme_eibach/Resources/Private/Extensions/FluidForm/Templates/ }
Now the general configuration is created and you only need to provide the PDF-Template as a Fluid file.