Hi,
I am using iTextSharp version 5.x before for exporting my gridview data to pdf
and it was working fine. But when i use it in live system, I found somebody
else has used iTextSharp version 4.x in our system and that my version was
affecting the older version and we got some problems. Then i am asked to use
the same old version which is already been used. Now When i used version 4.x, i
got the problem again related with fontsize.
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 get out of this issue ? Is there any way I can use my
version which is working with the older version of iTextSharp without hampering
that old version ? Please help. Its very very urgent.
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