Possible Duplicate:
Filling PDF Forms with PHP可能重复:使用PHP填写PDF表单
I have been looking and testing this for a couple days now and was wondering if anyone could point me in a different direction. I have a very long job application HTML form (jobapp.html) and a matching PDF (jobpdf.pdf) that have the same field names for all entries in both the HTML form and the PDF. I need to take the user data that is entered in the form and convert it to a PDF. This is what I have gathered so far but don't know if I am on track:
我一直在寻找和测试这几天,并且想知道是否有人能指出我的方向不同。我有一个很长的工作申请HTML表单(jobapp.html)和一个匹配的PDF(jobpdf.pdf),它们对HTML表单和PDF中的所有条目都有相同的字段名称。我需要获取在表单中输入的用户数据并将其转换为PDF。这是我到目前为止收集的内容,但不知道我是否正在进行中:
Is pdftk the only viable 3rd party app to accomplish this?
pdftk是唯一可行的第三方应用程序吗?
Using pdftk would i take the $_POST data collected for the user and generate a .fdf(user.fdf) then flatten the .fdf on the .pdf(job.pdf). So irregardless of where the fields are located on each document the information on the fdf would populate the pdf by field names?
使用pdftk我将获取为用户收集的$ _POST数据,并生成.fdf(user.fdf),然后在.pdf(job.pdf)上展平.fdf。因此,无论字段位于每个文档的哪个位置,fdf上的信息都会按字段名称填充pdf?
1 个解决方案
#1
1
Try mPDF. It generates PDFs from HTML and CSS. It doesn't understand everything you might want, but for documents with relatively simple formatting it's good.
试试mPDF。它从HTML和CSS生成PDF。它并不能理解您可能想要的所有内容,但对于格式相对简单的文档来说,它是好的。
#1
1
Try mPDF. It generates PDFs from HTML and CSS. It doesn't understand everything you might want, but for documents with relatively simple formatting it's good.
试试mPDF。它从HTML和CSS生成PDF。它并不能理解您可能想要的所有内容,但对于格式相对简单的文档来说,它是好的。