hi:
thanks for your help.
Do you think it is right that I want to use a xml document?
Now ,I want use a xml document as a template,and then add data into the template to generate a xml document with data,finally i translate xml to pdf.
Do you think it is right?? I need your advices!!
And I did a simple example following:
testxml.xml
<?xml version="1.0" encoding="gb2312" ?>
<!DOCTYPE ITEXT SYSTEM "http://itext.sourceforge.net/itext.dtd";>
<itext creationdate="Thu Jan 08 10:38:57 CST 2004" producer="iTextXML by lowagie.com">
<chunk font="STSong Light" size="18.0" fontstyle="normal" red="0" green="64" blue="64">
你好
</chunk>
</itext>
and in a java document i use the following statement :
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
parser.parse("testxml.xml", new SAXiTextHandler(document));
but the word of "你好" didn't appear!
Can you tell me the reason??
Thanks for any help!



////////////////////////////////////////////////////////////////////////////


You should use a reporting tool, such as JasperReports or JFreeReport.

Best Regards,

Paulo Soares

-----Original Message-----

From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of li hongbin

Sent: Thursday, January 08, 2004 2:13

To: [EMAIL PROTECTED]

Subject: [iText-questions] questions about generate pdf documents

hi:

Now I have some questions about generate pdf document:

For example,I have a report to print,so I want to generate a new pdf

document.and in the new pdf document ,there should be a header in the first


page,and a footer in the last page.Please take attention that the header or



the footer is not the header or the footer of the each page,it is the the


header or the footer of the whole report which probably include hundreds of


records.I want to use a template to do that,but I have lots questions


following:

first,I use a existing pdf document as a template to generate hundreds

of records(not including the header and the footer),and I made it.but i

don't know how to add the header and the footer to the generated pdf

document,it is too difficult to merge them correctly!

Can you give me some advices?

thanks for any help!

_________________________________________________________________

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to