Hi

 

I am trying to add a few tab spacing between two texts on the same line when
generating a footer in my PDF doc. However, "\t does not seem to work here.
Here's a snippet of code:

 

                                    Chunk tabSpace = new Chunk("\t\t\t\t" +
"           ");

                                    Phrase footPhrase = new
Phrase(tabSpace.content()  + this.getFooterText(),//

 
this.getPageFooterFont());

                                    document.setFooter(new HeaderFooter(new
Phrase("Page: ", this.getPageFooterFont()), footPhrase));

 

Only "     " is working, but "\t is not working in Chunk. Previously, I have
tried code as:

 

Phrase footPhrase = new Phrase("\t\t\t\t" + "           "  +
this.getFooterText(),//

 
this.getPageFooterFont());

                                    document.setFooter(new HeaderFooter(new
Phrase("Page: ", this.getPageFooterFont()), footPhrase));

 

 

But same result, the "\t does not seem to work in PDF, any ideas?

 

Thanks

arif

 

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to