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
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
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