Description
When receiving a PDF document as a byte array, users need to convert the data manually to a PDF document. For instance, consider a route like:
from("direct:consumePDF") .process(this::convertBytesToPDFFile) // -> this is needed to convert .pipeline() .to("pdf:extractText") .process(...);
Then, the convertBytesToPDFFile should contain something like:
final byte[] body = e.getMessage().getBody(byte[].class); PDDocument document = Loader.loadPDF(body);
This makes designing routes that consume PDFs harder.
Attachments
Issue Links
- relates to
-
CAMEL-21305 camel-pdf: type converter doesn't work with stream cache
- Resolved
- links to