Grokbase Groups Camel users June 2016

Yeah its a missing feature to be able to load a pdf document from the
classpath. It currently requires you to create the PdfDocument
instance yourself.

You are welcome to log a JIRA ticket to improve this so we can load
the resource from file/classpath etc.

And contributions is welcome
On Mon, Jun 6, 2016 at 9:28 AM, Luc Engelen wrote:

I'm trying to extract text from PDF files using the Camel PDF component.
Unfortunately, I'm running into a NullPointerException each time I send a
PDF file to the component. I've set up a route in a Camel test that connects
a direct component to a PDF component. When I send PDF files to the direct
component, the exception is thrown once the message reaches the PDF

The exception is thrown in the class PdfProducer. The line "PDDocument
document = exchange.getIn().getBody(PDDocument.class);" in this class
results in document being null. When a method is called on document, the
NullPointerException is thrown. As far as I can tell, this is the result of
a missing TypeConverter.

The failing test is available on Github:

Is this a bug or am I doing something wrong?

Best regards,


View this message in context:
Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupusers @
postedJun 6, '16 at 7:28a
activeJun 6, '16 at 9:20a



site design / logo © 2018 Grokbase