The System - JoomForms PDF plugin turns a submission into a PDF file. It attaches the PDF to the user or admin email, and it makes the PDF downloads of the directory, the Submissions - View menu item and Export to PDF in the submissions list work.
Enable it in Extensions > Plugins.
Plugin settings
| Setting | Meaning |
|---|---|
| PDF Library | dompdf, the library included in the package. |
| Font | DejaVu Sans (Unicode) and Firefly (Unicode) show accented and non-Latin characters. Courier, Helvetica and Times Roman cover basic Latin only. |
| Orientation | portrait or landscape. |
| Paper Size | Default a4. |
| Allow Remote Resources | Loads images and CSS from other web addresses into the PDF. Leave it off unless you need it. |
Attach a PDF to an email
- Open the form, tab Emails, sub-tab User or Admin.
- In PDF Attachment, set Attach to User Email (or Attach to Admin Email) to Yes.
- Enter the Filename.
.pdfis added for you. - Write the PDF Layout (HTML). Use the same placeholders as in the email, for example
<h1>Order {global:submissionid}</h1><p>{Name:caption}: {Name:value}</p>. - Optionally set a User Password (needed to open the file), an Owner Password and the Allowed Options: Print the document, Modify the document, Extract contents (copy), Comment in the document.
Download links
The plugin also adds the placeholders {user_pdf} and {admin_pdf}, links that download the PDF of the submission. Anyone with the link can open it, and the links can be guessed. Do not put these links in pages or emails when the PDF holds personal data; attach the PDF to the email instead.