Re: [iText-questions] Font of the Add(paragraph) method

2013-07-12 Thread SALAZAR, DANTE
Thanks Raf Was perfect Now the whole document is printed in Time_Roman How can I do to change font type to Arial, for example? If I try this bf = BaseFont.CreateFont(BaseFont.Arial, BaseFont.CP1252, False) I receive an error 2013/7/12 Raf Hens > On 12/07/2013 7:04, SALAZAR, DANTE wrote

Re: [iText-questions] Font of the Add(paragraph) method

2013-07-12 Thread Raf Hens
On 12/07/2013 7:04, SALAZAR, DANTE wrote: > How can I asign Time_Roman to the paragraph method? Font f = new Font(bf, 12); Paragraph p = new Paragraph("text", f); // Or: Paragraph p2 = new Paragraph(); p2.Font = f; p2.Add("text"); doc.Add(p); doc.Add(p2); Best regards, Raf Hens iText Software

[iText-questions] Font of the Add(paragraph) method

2013-07-11 Thread SALAZAR, DANTE
I am generating a report combining ShowText and Doc.Add(paragraph) For text printed with ShowText function I set the font to Times_Roman with the instructions: bf = BaseFont.CreateFont(BaseFont.TIMES_ROMAN, BaseFont.CP1252, False) cb.SetFontAn