Ravish Bhagdev
Ravish Bhagdev

Reputation: 955

Alternative to Tika/PDFBox for parsing PDF in Solr (any version later than 1.4)

Seems like Solr is not parsing my PDF files correctly. I was wondering if there is any other alternative to using Apache Tika (which I believe uses PDFBox internally) for parsing PDF files? I seem to be getting random spaces in between my content when using this. I have isolated the problem by running PDF through PDFBox directly (latest version) which has the same problem.

Some OCR commercial software such as Omnifind work on PDF fine but we are not able to integrate them with Solr in same way and buying is not an option either.

Upvotes: 5

Views: 6344

Answers (3)

Persimmonium
Persimmonium

Reputation: 15789

I use jpod as a fallback library to extract from pdf when pdfbox fails completely (hang, crash...), so at least in some cases it works better than pdbbox for me.

Upvotes: 1

Okke Klein
Okke Klein

Reputation: 2549

Xpdf contains pdftotext which converts documents a lot better then Tika.

Upvotes: 1

Tom De Leu
Tom De Leu

Reputation: 8274

As the answer to this SO question indicates, this is due to the nature of the PDF format itself.

It's possible that OCR options do better on this problem than PDFBox, there are some free OCR options available like Tesseract and Ocropus but I have no idea how well they work or if they can be easily integrated with Solr.

Upvotes: 2

Related Questions