iTextSharp或XSL-FO用可填写表格动态创建PDF? [英] iTextSharp or XSL-FO to create a PDF dynamically with fillable forms?

查看:142
本文介绍了iTextSharp或XSL-FO用可填写表格动态创建PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个stackoverflow问题。
经过几天的研究,如果可能的话,我仍然不知道如何做到这一点。
我正在尝试使用iTextSharp或XSL-FO创建PDF文档(FO.NET是我目前使用的)。创建documnet是没有问题的。我需要这个documnet来拥有用户仍然可以填写的字段。
我知道能够使用acrobat创建PDF表单,然后使用iTextSharp填写这些字段。然后可以保存它,用户可以打开文档并进行编辑。
这个问题是,每当需要更改PDF模板时,有人必须编辑PDF文档,然后更改后端逻辑以处理新字段。

This is my first stackoverflow question. After days of research, I am still lost on how this can be done, if its even possible. I am trying to create a PDF document using either iTextSharp or XSL-FO (FO.NET is what I am using currently). Creating the documnet is no problem. I need this documnet to have fields that the user can still fill in. I am aware of the ability to create a PDF form using acrobat, then using iTextSharp to fill in those fields. This can then be saved and the user can open the document and edit it. The problem with this is, anytime the PDF "template" needs to be changed, someone has to edit the PDF document, then change the backend logic to handle the new field.

我正在寻找一个100%动态的解决方案。
理想情况下,我会使用XSL和FO来创建此文档,而无需现有的PDF文档。我发现没有办法使用FO.NET甚至iTextSharp创建一个可填写的表单,而没有现有的PDF模板。

I am looking for a 100% dynamic solution. Ideally I would use XSL and FO to create this document without the need for an exisiting PDF document. I have found no way to create a fillable form using FO.NET, or even iTextSharp, without already having an exisiting PDF "template".

提前致谢。

推荐答案

我相信 RenderX XEP Antenna House FO处理器支持PDF表格。它们不是免费的,PDF表格可能需要

I believe both the RenderX XEP and Antenna House FO processors support PDF Forms. They aren't free and additional output modules may be required for PDF Forms.

这篇关于iTextSharp或XSL-FO用可填写表格动态创建PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆