« Return to Thread: Absolute Postion of Bolded Text?
I kind of got it working with ColumnText. But I will look into datatables. I am trying to copy labels from a C# form into a pdf.
ct = new ColumnText(cb);
Font font2 = new Font(bf, lbl.Font.Size, (int)lbl.Font.Style);
Phrase phrase2 = new Phrase("1", font);
ct.SetSimpleColumn(phrase2, 10, h, 100, 10, 1, Element.ALIGN_TOP);
ct.Go();Shawn Davies wrote:Try this:
iTextSharp.text.Font fBoldFont =
FontFactory.GetFont(FontFactory.HELVETICA, 8,
iTextSharp.text.Font.BOLD);
datatable.AddCell(new Paragraph(colName.ToUpper(), fBoldFont));
Shawn.Davies@Macrovision.com
-----Original Message-----
From: Belmiris [mailto:rickcimbalo@yahoo.com]
Sent: Sunday, June 14, 2009 8:44 AM
To: itextsharp-questions@lists.sourceforge.net
Subject: [itextsharp-questions] Absolute Postion of Bolded Text?
Hello. I'm pretty new to iText and just went thru the tutorial but could
not
find a way to set text with a bolded font absolutely in a document
(ShowTextAligned() only allows the basefont). Is there a way to do this?
(shortly I will need styles like italic as well)
Thanks for any help.
--
View this message in context:
http://www.nabble.com/Absolute-Postion-of-Bolded-Text--tp24021778p240217
78.html
Sent from the itextsharp-questions mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
« Return to Thread: Absolute Postion of Bolded Text?
| Free embeddable forum powered by Nabble | Forum Help |