I*******o 发帖数: 53 | 1 需求是这样的:
input: XML data, PDF template (generated by Designer)
output: PDF file (template filled up by XML data)
现在的solution是XPAAJ,只要一个method call就可以。
但是问题是,当xml data很大,并且有image data时候,
生成的PDF没有data,跟template没填东西一样。
考虑中的solutions:
1。用iText之类的package。不过不知道iText是否支持这种template?
2。研究一下XPAAJ是不是有什么tricks
说明:adobe现在已经不支持XPAAJ了,download都没了。
现在他们想推的LiveCycle,太贵,不能考虑。
各位有类似经验可以share一下么?谢谢! | w*r 发帖数: 2421 | 2 这个东西我写过,用itext, 自己设计一个template, 数据和chart从class到一个XML
file, 然后自己写一个parser把XML用itext生成pdf.. 不是很难,基本上属于四天dev
两天test的活儿
【在 I*******o 的大作中提到】 : 需求是这样的: : input: XML data, PDF template (generated by Designer) : output: PDF file (template filled up by XML data) : 现在的solution是XPAAJ,只要一个method call就可以。 : 但是问题是,当xml data很大,并且有image data时候, : 生成的PDF没有data,跟template没填东西一样。 : 考虑中的solutions: : 1。用iText之类的package。不过不知道iText是否支持这种template? : 2。研究一下XPAAJ是不是有什么tricks : 说明:adobe现在已经不支持XPAAJ了,download都没了。
| b******y 发帖数: 1684 | 3 in our application, template is already in file format
and the xml generation part is also done
how difficult is it to use iText to read the XML parsing result
and render it in the template?
thanks!
dev
【在 w*r 的大作中提到】 : 这个东西我写过,用itext, 自己设计一个template, 数据和chart从class到一个XML : file, 然后自己写一个parser把XML用itext生成pdf.. 不是很难,基本上属于四天dev : 两天test的活儿
| w*r 发帖数: 2421 | 4 if xml is ready, all u need to do is write ur own parser, a week's work
【在 b******y 的大作中提到】 : in our application, template is already in file format : and the xml generation part is also done : how difficult is it to use iText to read the XML parsing result : and render it in the template? : thanks! : : dev
| b******y 发帖数: 1684 | 5 sigh, traced the bug, found out XPAAJ doesn't work for some (but not all)
images.
the problem is XPAAJ doesn't throw any exception, only creates a blank PDF.
so i'm clueless about why these specific pictures don't work.
maybe I'll have to turn to itext...
【在 w*r 的大作中提到】 : if xml is ready, all u need to do is write ur own parser, a week's work
| b******y 发帖数: 1684 | 6 lol...found out if the xml string contains 'xfdf', then XPAAJ would stop
working.
what a funny bug. adobe is not supporting XPAAJ anymore so this bug won't be
fixed.
but we won't buy LC server.
【在 b******y 的大作中提到】 : sigh, traced the bug, found out XPAAJ doesn't work for some (but not all) : images. : the problem is XPAAJ doesn't throw any exception, only creates a blank PDF. : so i'm clueless about why these specific pictures don't work. : maybe I'll have to turn to itext...
|
|