Hey I am using iTextSharp 4.1.2.0 and it gave problem related with font size. 
Before I was using version 5.x which was working fine but I need to switch to 
the version 4.x because the system was already usng version 4.x so when i used 
version 5.x, it affected the previous version.  But when i used iTextSharp 
4.1.2.0, it gave following error. Is there any way i can get rid of this issue 
?  
Error:


Font size too small: 0 Description: An unhandled exception occurred during the 
execution of the current web request. Please review the stack trace for more 
information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Font size too small: 0

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.






An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.
 

Stack Trace: 
[ArgumentException: Font size too small: 0]
   iTextSharp.text.pdf.PdfContentByte.SetFontAndSize(BaseFont bf, Single size) 
+279
   iTextSharp.text.pdf.PdfDocument.WriteLineToContent(PdfLine line, 
PdfContentByte text, PdfContentByte graphics, Object[] currentValues, Single 
ratio) +7581
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +957
   iTextSharp.text.pdf.ColumnText.GoComposite(Boolean simulate) +695
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +53
   iTextSharp.text.pdf.PdfPRow.WriteCells(Int32 colStart, Int32 colEnd, Single 
xPos, Single yPos, PdfContentByte[] canvases) +3245
   iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 
colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, 
PdfContentByte[] canvases) +230
   iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 
colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte 
canvas) +258
   iTextSharp.text.pdf.ColumnText.GoComposite(Boolean simulate) +4426
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +53
   iTextSharp.text.pdf.PdfDocument.AddPTable(PdfPTable ptable) +360
   iTextSharp.text.pdf.PdfDocument.Add(IElement element) +4445
iTextSharp.text.Document.Add(IElement element) +132
   iTextSharp.text.html.simpleparser.HTMLWorker.EndElement(String tag) +2108
   iTextSharp.text.xml.simpleparser.SimpleXMLParser.Go(TextReader reader) +1108
   iTextSharp.text.xml.simpleparser.SimpleXMLParser.Parse(ISimpleXMLDocHandler 
doc, ISimpleXMLDocHandlerComment comment, TextReader r, Boolean html) +48
   iTextSharp.text.html.simpleparser.HTMLWorker.Parse(TextReader reader) +10
   Testing.AdminView.filetesting() in C:\Documents and Settings\smanandhar\My 
Documents\Visual Studio 2008\Projects\Testing\AdminView.ascx.cs:165
   Testing.AdminView.lnkDataPdf_Click(Object sender, EventArgs e) in 
C:\Documents and Settings\smanandhar\My Documents\Visual Studio 
2008\Projects\Testing\AdminView.ascx.cs:100
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String 
eventArgument) +79
   
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
 eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, 
String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, 
Boolean includeStagesAfterAsyncPoint





[ArgumentException: Font size too small: 0]
   iTextSharp.text.pdf.PdfContentByte.SetFontAndSize(BaseFont bf, Single size) 
+279
   iTextSharp.text.pdf.PdfDocument.WriteLineToContent(PdfLine line, 
PdfContentByte text, PdfContentByte graphics, Object[] currentValues, Single 
ratio) +7581
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +957
   iTextSharp.text.pdf.ColumnText.GoComposite(Boolean simulate) +695
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +53
   iTextSharp.text.pdf.PdfPRow.WriteCells(Int32 colStart, Int32 colEnd, Single 
xPos, Single yPos, PdfContentByte[] canvases) +3245
   iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 
colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, 
PdfContentByte[] canvases) +230
   iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 
colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte 
canvas) +258
   iTextSharp.text.pdf.ColumnText.GoComposite(Boolean simulate) +4426
   iTextSharp.text.pdf.ColumnText.Go(Boolean simulate) +53
   iTextSharp.text.pdf.PdfDocument.AddPTable(PdfPTable ptable) +360
   iTextSharp.text.pdf.PdfDocument.Add(IElement element) +4445
   iTextSharp.text.Document.Add(IElement element) +132
   iTextSharp.text.html.simpleparser.HTMLWorker.EndElement(String tag) +2108
   iTextSharp.text.xml.simpleparser.SimpleXMLParser.Go(TextReader reader) +1108
   iTextSharp.text.xml.simpleparser.SimpleXMLParser.Parse(ISimpleXMLDocHandler 
doc, ISimpleXMLDocHandlerComment comment, TextReader r, Boolean html) +48
   iTextSharp.text.html.simpleparser.HTMLWorker.Parse(TextReader reader) +10
   Testing.AdminView.filetesting() in C:\Documents and Settings\smanandhar\My 
Documents\Visual Studio 2008\Projects\Testing\AdminView.ascx.cs:165
   Testing.AdminView.lnkDataPdf_Click(Object sender, EventArgs e) in 
C:\Documents and Settings\smanandhar\My Documents\Visual Studio 
2008\Projects\Testing\AdminView.ascx.cs:100
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String 
eventArgument) +79
   
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
 eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, 
String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, 
Boolean includeStagesAfterAsyncPoint) +1565

Is there any way I can set that font size ? 
Please help. Its urgent.Any help is highly appreciated.


Thanks,
Suchita
                                          
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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