简体   繁体   English

网页-使用PDF文件模板代替FPDF

[英]Web page - using PDF file template instead of FPDF

I have a small PHP webpage on which people can register for some events. 我有一个小的PHP网页,人们可以在上面注册一些活动。 After registration they receive email with confirmation in PDF (template with fill in fields like last name, mail address etc.). 注册后,他们会收到一封带有PDF确认邮件的电子邮件(模板中包含诸如姓氏,邮件地址等填写字段)。 There are so many changes in this PDF template that updating it using FPDF code take too much time. PDF模板中的更改太多,以至于使用FPDF代码更新它会花费太多时间。

Is there any option to create PDF templates (eg with Adobe Acrobat) with given "fill in fields" and then link it to web page function which fill them in using data from given MySQL table columns? 是否可以选择使用给定的“填写字段”来创建PDF模板(例如,使用Adobe Acrobat),然后将其链接到网页功能,从而使用给定的MySQL表列中的数据来填充它们? Something like that: 1. Open PDF template (instead of using FPDF code) 2. Fill in first field in template with name from MySQL table column A 3. Fill in second field in template with last name from MySQL table column B 4. ... 5. Save template as xxx.pdf and send it via mail. 这样的事情:1.打开PDF模板(而不使用FPDF代码)2.在模板的第一个字段中填写MySQL表A中的名称。3.在模板的第二个字段中填写MySQL表B 4.中的姓。 .. 5.将模板另存为xxx.pdf并通过邮件发送。 Shortly speaking - how replace FPDF code creation by attaching PDF file on which I can fill in given fields using MySQL records? 简而言之-如何通过附加可以使用MySQL记录填写给定字段的PDF文件来替换FPDF代码创建?

try with FPDM. 尝试使用FPDM。 You can create a PDF template with Adobe Acrobat, containing various fields. 您可以使用Adobe Acrobat创建包含各种字段的PDF模板。 After that you can process the file with PHP and fill the fields with data from your SQL tables. 之后,您可以使用PHP处理文件,并使用SQL表中的数据填充字段。 Take a look here: http://www.fpdf.org/en/script/script93.php 在这里看看: http : //www.fpdf.org/en/script/script93.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM