Groovy - 需要制作可打印的表单 [英] Groovy - need to make a printable form

查看:152
本文介绍了Groovy - 需要制作可打印的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能需要标题帮助,因为我的意思是文字形式,而不是HTML元素。我有这个PDF表格,我在用户使用我的网站后给每个人发电子邮件,我必须手动输入数据库知道的几个字段。我正在寻找一种很好的方法让Groovy制作pdf或类似的东西。



我将尝试:在Word中创建表单,另存为XML,将XML作为groovy String和$ {someVariable}填入任意位置。在Word中打开XML,然后打印为PDF。



有更好的方法吗?我有Acrobat,但是如果没有它,那就更好了。



我遇到了一个问题,我将作为一个单独的问题询问,所以准备好一个链接的地方。更新: Groovy说我的Unicode字符串太长 p>

iText在他们回到我身边之前并不是一种选择Re:授权,这也不包括Jared提到的插件(它基于iText)。

阿帕奇的事情似乎很难学习,就像制作我的rube goldberg一样......

我没有使用过,但看看 PDF插件看起来你可以创建一个标准Grails视图,包含您想要的信息并从中生成PDF。我希望我已经用我的PDF生成需求。


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...

解决方案

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.

这篇关于Groovy - 需要制作可打印的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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