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 <raf.h...@itextpdf.com>

> 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
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to