从现有 PDF 文档生成 FPDF 代码,可能吗?

发布于 2024-12-13 07:34:33 字数 198 浏览 1 评论 0原文

我目前正在执行一项任务,从当地政府机构获取表格并进行转换,以便他们能够根据传递的参数通过 FPDF 动态生成 PDF。目前,这些文档的唯一副本是只读 pdf 文件。我想知道是否有办法让这些文件以某种方式读取到可以将这些文档转换为 FPDF 格式的地方?通常情况下,我只是手动创建它们,但要转换 50 个文件,而且有些文件是多页表单,可能需要几个月的时间,因此需要寻找一种更快的方法。

I'm currently doing a task where I'm taking forms from a local government body, and converting them so that they are able to have a PDF generated dynamically via FPDF based on passed parameters. Currently the only copies of these documents are in read-only pdf files. What I'm wondering is if there is a way to have these files read somehow to where these documents could be converted into FPDF format somehow? Normally I'd just create them manually, but with 50 files to convert, and with some being multiple page forms, it'll probably take months, and hence looking for a quicker way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幻想少年梦 2024-12-20 07:34:33

简短的回答是你被困住了。据我和我大量时间的研究所知,不存在这样的过程。我很乐意被证明是错误的。

我最近在保险表格上遇到了类似的情况。我使用 Adob​​e Live Cycle Designer 的免费试用版来构建表单。它基本上将旧的 pdf 转换为平面背景图像,您可以在其上绘制表单字段。然后我使用了 PDF ToolkitPDFTK-PHP 填充字段。

这个过程并不理想,但效果还不错。我在一周内设置了 20 个表格,大约 50 页,其中包含填充代码和其他一些操作。

The short answer is you're stuck. As far as I and my many hours of research know there's no such process. I would love to be proven wrong.

I recently went through a similar situation with insurance forms. I used the free trial of Adobe Live Cycle Designer to build out the forms. It basically turns the old pdf into a flat background image you can draw form fields over. Then I used PDF Toolkit and PDFTK-PHP to populate the fields.

The process wasn't ideal but it worked out well enough. I setup 20 forms consisting of about 50 pages with filling code and some other operations in a week.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文