thanks again...

im sorry if im being redundant...but how do i force the font type to the
font type that i want again (i.e. times new roman or times roman)? below is
how i create my pdf file:


PdfReader reader = new PdfReader("template.pdf"); //i have pdf fields (ex:
t_field1, t_field2) here and all of them are set to times new roman - 9
PdfStamper stamp = new PdfStamper(reader, new
FileOutputStream("output.pdf"));
Acrofields form = stamp.getAcroFields(); 

//some stuff  to iterate thru resultset (while rs.next(), etc) 
        form.setField("t_field1", "some_data_from_resultset"); 
        form.setField("t_field2", "some_data_from_resultset"); 
//end of looping thru the resultset 

//now we close 
stamp.setFormFlattening(true); 
stamp.close(); 






Bruno Lowagie (iText) wrote:
> 
> ayeen wrote:
>> 
>> hi, may i ask what's itext's default font when creating a pdf file? 
> 
> Helvetica 12pt not embedded (the AFM is in the jar).
> br,
> Bruno
> 
>  
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FONT-inconsistencies-when-creating-PDFs-tp14516873p14629551.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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/

Reply via email to