Groovy - 需要制作可打印的表格
可能需要标题帮助,因为我指的是文字纸质表单,而不是 HTML 元素。我有这个 PDF 表单,在每个人使用我的网站后都会通过电子邮件发送给他们,并且我必须手动输入数据库知道的几个字段。我正在寻找一种让 Groovy 制作 pdf 或类似内容的好方法。
我要尝试的是:在Word中制作表单,另存为XML,将XML作为groovy String和${someVariable}放在我需要填写的任何地方。在Word中打开XML,然后打印为PDF。
有更好的办法吗?我有 Acrobat,但如果有办法不用它那就更好了。
我遇到了一个问题,我将作为一个单独的问题提出,所以准备好这里的链接。更新: Groovy 说我的 Unicode 字符串太长
iText 是在他们回复我之前,这不是一个选择:回复:许可也排除了 Jared 提到的插件(它基于 iText)。
Apache 的东西似乎和制作我的鲁布·戈德堡一样难学......
Probably need title help as I mean a literal paper form, not an HTML element. I have this PDF form I email everyone after they use my site, and I have to manually enter a couple fields the database knows. I am looking for a good method to have Groovy make a pdf or something like that.
What I am going to attempt: Make the form in Word, save as XML, put XML as groovy String and ${someVariable} everywhere I need filled in. Open XML in Word and then print as PDF.
Is there a better way? I have Acrobat, but if there is a way without it that's even better.
I am running into a problem which I will ask as a separate question, so get ready for a link hereish. UPDATE: Groovy says my Unicode string is too long
iText is not an option until they get back to me Re: licensing which also excludes the plugin Jared mentions (it is based on iText).
Apache thing seems to be about as hard to learn as making my rube goldberg...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有使用过这个,但看看 PDF 插件 看起来你可以创建一个标准 grails 视图包含您想要的信息并从中生成 PDF。我希望我能用它来满足我的 PDF 生成需求。
I haven't used this but take a look at the PDF Plugin It looks like you can create a standard grails view containing the info you want and generate a PDF from it. I wish I had used this for my PDF generation needs.