Hello,
I am getting the following warning message when I am indexing the pdf files using Lucene Indexing.
log4j:WARN No appenders could be found for logger (org.pdfbox.pdfparser.PDFParser).
log4j:WARN Please initialize the log4j system properly.
This is the code I am using:
if(pdf.exists())
{
String text = "";
try{
PDDocument document = PDDocument.load(pdf); // laden des Files
PDFTextStripper pts = new PDFTextStripper(); //Extrahieren des Textes
text = pts.getText(document);
document.close();
}
catch(IOException e){
System.out.println("File not found");
}
mDocument.add(Field.Text("fulltext", text));
thanx,
MTREDDY
Tirupati Reddy Manyam
24-06-08,
Sundugaullee-24,
79110 Freiburg
GERMANY.
Phone: 00497618811257
cell : 004917624649007
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I am getting the following warning message when I am indexing the pdf files using Lucene Indexing.
log4j:WARN No appenders could be found for logger (org.pdfbox.pdfparser.PDFParser).
log4j:WARN Please initialize the log4j system properly.
This is the code I am using:
if(pdf.exists())
{
String text = "";
try{
PDDocument document = PDDocument.load(pdf); // laden des Files
PDFTextStripper pts = new PDFTextStripper(); //Extrahieren des Textes
text = pts.getText(document);
document.close();
}
catch(IOException e){
System.out.println("File not found");
}
mDocument.add(Field.Text("fulltext", text));
thanx,
MTREDDY
Tirupati Reddy Manyam
24-06-08,
Sundugaullee-24,
79110 Freiburg
GERMANY.
Phone: 00497618811257
cell : 004917624649007
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com