I did not know how to answer and I sent another e-mail.
Yeah, I think it can not manage the images.
Can you give me an example?
That means fixing the parser?
You paste the offending piece of code:
PdfReader pdfr = new PdfReader(fileName);
int np = pdfr.getNumberOfPages();
PdfTextExtractor pdfte = new PdfTextExtractor(pdfr);
for (int i=0; i<=np; i++) {
contenutoPagina = pdfte.getTextFromPage(i);
.
.
.
.
.
.
}
Thanks
Pamela
--------------------------------------------------------------------------------------------------------------------------------------------------
I bet the content parser doesn't handle inline
images - you'll need to fix the parser.
From: Pamela Bondi [mailto:[email protected]]
Sent: Thursday, March 18, 2010 5:07 PM
To:
<mailto:[email protected]>[email protected]
Subject: [iText-questions] '>' not expected at file pointer 23512
Hi,
I'm extracting from a PDF file of text data using
the method ".getTextFromPage (i)" from a PdfTextExtractor.
The error born when in the PDF there is an image of type "BI / IM".
And that gives me the error is '>' not expected at 23512th file pointer.
Is there a way to solve with iText or do I change the library?
Thanks
Pamela
Pamela Bondi
Siweb Srl - Firenze
055 - 3034183
INFORMATIVA PRIVACY D.LGS 196/2003
Le informazioni contenute nel presente documento
e relativi allegati possono essere riservate e
sono destinate esclusivamente alla persona od
alla Società indicate come destinatarie. La
diffusione e la distribuzione del presente
documento a soggetti diversi da quelli indicati,
od in generale qualsivoglia utilizzo illecito dei
dati ivi contenuti, è proibita sia ai sensi
dellart. 616 del Codice Penale che dal D. Lgs
196/03 in materia di protezione dei dati
personali (Privacy). Se avete ricevuto per errore
questo documento siete pregati di distruggerlo e
di comunicarcelo prontamente tramite e-mail o fax.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/