Why the getTextFromPage(int n)  gives  java.lang.ArithmeticException: / by zero?

Any solution please.




PdfReader reader = new PdfReader(fileName);
PdfTextExtractor pte = new PdfTextExtractor(reader);
Line # 114    String strToParse = pte.getTextFromPage(pageNum);

java.lang.ArithmeticException: / by zero
       at 
com.lowagie.text.pdf.CMapAwareDocumentFont.computeAverageWidth(Unknown Source)
       at com.lowagie.text.pdf.CMapAwareDocumentFont.<init>(Unknown Source)
       at 
com.lowagie.text.pdf.parser.PdfContentStreamProcessor$SetTextFont.invoke(Unknown
 Source)
       at 
com.lowagie.text.pdf.parser.PdfContentStreamProcessor.invokeOperator(Unknown 
Source)
       at 
com.lowagie.text.pdf.parser.PdfContentStreamProcessor.processContent(Unknown 
Source)
       at com.lowagie.text.pdf.parser.PdfTextExtractor.getTextFromPage(Unknown 
Source)
       at 
com.citizens.thunderhead.pbrecon.PdfParserImpl.readThroughPdf(PdfParserImpl.java:114)


Thanks.
Shekhar
813-465-6979

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
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