itext-1.3.1.jar is too old to be supported unless you have a maintenance 
contract. Nevertheless, why are you using RTF classes if the objective is to 
produce PDF?

Paulo 

> -----Original Message-----
> From: ...tharas [mailto:thar...@gmail.com] 
> Sent: Monday, July 06, 2009 1:06 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] iText : problem with footers
> 
> Hello all,
> 
> I am using itext-1.3.1.jar for generating PDF reports. I have 
> a problem while trying to display footers. 
> My code is as below:
> 
> 
> Document doc = new Document(PageSize.A4, leftMargin, 
> rightMargin, topMargin, bottomMargin);
> try {
> doc.addAuthor("XYZ");
> doc.addSubject("My Subject");
> doc.addCreationDate(); 
> Table footerTable = new Table(2);
> //footer.setBorder(0);
> //footer.setDefaultCellBorder(0);
> footerTable.addCell(new Phrase("XYZ Limited ", new 
> RtfFont("Helvetica", footerStaticFontSize)));
> footerTable.addCell(new Phrase("An XYZ initiative", new 
> RtfFont("Helvetica", footerStaticFontSize)));
> //Create the RtfHeaderFooter and set it as the footer to use
> doc.setFooter(new RtfHeaderFooter(footerTable));
> doc.open(); 
> Paragraph paragraph = new Paragraph(dateFormat.format(date), 
> new RtfFont("Helvetica", dateFontSize));
> paragraph = new Paragraph("My Title ", new 
> RtfFont("Helvetica", titleFontSize, RtfFont.BOLD));
> paragraph.setAlignment(Paragraph.ALIGN_CENTER);
> doc.add(paragraph);
> paragraph = new Paragraph("\nREPORT ON EMPLOYEES", new 
> RtfFont("Helvetica", headingFontSize, RtfFont.BOLD));
> paragraph.setAlignment(Paragraph.ALIGN_CENTER);
> doc.add(paragraph);
> }
> catch(Exception e){
> throw new Exception(e);
> }
> doc.close();
> With this code, the PDF footer part is shown as "Rectangle: 
> 0.0x0.0". From one site, I could understand that somewhere 
> the toString() method is being called. But could not get a 
> solution to problem. Please help.
> 
> 
> Roshni.


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to