JiriOndrusek commented on issue #5234:
URL: https://github.com/apache/camel-quarkus/issues/5234#issuecomment-1700879106
@oscerd I tried to create a test which parses pdf (using plain Camel). For
that purpose I have to add:
```
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parser-pdf-module</artifactId>
<version>2.9.0</version>
</dependency>
```
to get PdfParser for Tika. This dependency brings PdfBox 2.x (see
https://mvnrepository.com/artifact/org.apache.tika/tika-parser-pdf-module/2.9.0)
Therefore user which would like to use pdf parser for Tika might had a
conflict in dependencies in case i.e. `camel-pdf` is also part of the project.
The failure is caused by the no-compatibility between `pdfbox` 2.x and 3.x.
```
java.lang.NoSuchMethodError: 'org.apache.pdfbox.pdmodel.PDDocument
org.apache.pdfbox.pdmodel.PDDocument.load(java.io.InputStream,
java.lang.String, org.apache.pdfbox.io.MemoryUsageSetting)'
at
org.apache.tika.parser.pdf.PDFParser.getPDDocument(PDFParser.java:421)
```
I can imagine that this use case does not make sense - parsing pdf by
camel-tika and depend on camel-pdf.
In case that useage of `camel-tika` (for pdf parsing) together with
`camel-pdf ` is not supported, forcing similar restriction for camel-quarkus
might solve the problem. (Currently we are testing `tika` extension for parsing
pdf files)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]