承接 t3brightside/form-pdf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

t3brightside/form-pdf

Composer 安装命令:

composer require t3brightside/form-pdf

包简介

TYPO3 form finisher to write form data into pre-existing PDF file.

README 文档

README

Packagist Software License Brightside

TYPO3 form finisher to write form data into pre-defined PDF file.

  • Sends PDF as an attachment in user and receiver e-mails
  • Provides link to the PDF file in the confirmation message & deletes file after clicking the link
  • Adds scheduler task to remove the file after certain amount of time if link is not clicked

Installation

Install with composer (recommended)

composer require t3brightside/form-pdf

How it works

The PDF file is generated using mPDF PHP library.

It uses pre-defined PDF Template file as layout and inserts pre-defined HTML with form data and layout.

PDF Template

It is possible to prepare PDF layout with office software.
You can find PDF layout example here.

HTML Template

HTML template contains fluid-styled markers of form values.
You can find HTML example here.
This example related to default contact form.

Usage

  1. Include static record "Form PDF" to TS template.

  2. Prepare 2 records: PDF Template, HTML templates.

new record

  1. Add PDF Finisher at the first position in the form.

finisher

  1. Select already created PDF Template and HTML Template.

  2. "Attach PDF to receiver mail": when checked, then PDF is attached to admin mail.

  3. "Attach PDF to user mail": when checked, then PDF is attached to user mail.

  4. "Open PDF in new window": when checked, the confirmation message is appended with "Click to open PDF." link.

  5. When the link "Click to open PDF." is clicked, then PDF is removed from filesystem.

For Developer

Templating

Confirmation template is ConfirmationWithLink.html.
It is possible to rewrite it from another location by configuration

TYPO3:
    CMS:
        Form:
            prototypes:
                standard:
                    finishersDefinition:
                        Confirmation:
                            options:
                                templateRootPaths:
                                   20: 'fileadmin/templates/form/Confirmation/'

Extending

It extends core finishers

  • EmailFinisher.php
  • ConfirmationFinisher.php

Sources

Author

Mykola Orlenko - mykola.orlenko@web-spectr.com

Development and maintenance

Brightside OÜ – TYPO3 development and hosting specialised web agency

统计信息

  • 总下载量: 10.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2021-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固