Ahmad Lutat wrote:
I am using iText java for generation pdf documents
1. How can I set a Paragraph to be bold?
The following code does'nt work
p = *new* Paragraph("this is my text");
p.setFont(*new* Font(Font./HELVETICA/,24, Font./BOLD/));
PDFDocument.add (p);
That is expected behavior. Please read the tutorial or the book. Please don't "invent" code and expect it to work.
2. How can I format the text " myname myInformation" so that the first word ist left adjusted and the second (variable length) rigth adjusted without having to add spaces between them.
Use a PdfPTable with 2 cells. br, Bruno
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ 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/
