Hi Tim,

Did you use the exact same pom I shared, or a custom one? If the second, could 
you please share it so I can verify if something missing on mine.

Also, what jdk/maven versions are you using?

Tilman, I get the expected string when printing 
System.out.println(org.apache.tika.parser.pdf.PDFParser.PASSWORD); on both 
2.7.0 and 2.8.0+

Thanks, and regards,
Gerardo
________________________________
From: Tim Allison <[email protected]>
Sent: Wednesday, April 3, 2024 06:43 AM
To: [email protected] <[email protected]>
Subject: Re: AutoDetectParser not working after upgrading from 2.7.0 to 2.8.0+

Y, I'm not able to repro this problem with 2.8.0 or higher. I'm seeing
239 parsers (probably diff from Tilman because of installed external
parsers?).

On Wed, Apr 3, 2024 at 5:09 AM Tilman Hausherr <[email protected]> wrote:
>
> On 03.04.2024 08:55, Gerardo Hernandez wrote:
> > On 2.7.0, I get a list of 203 parsers, and the file is parser
> > successfully:
>
> I get 227 parsers with 2.9.2. My pom.xml is somewhat different. The main
> part is
>
>
>      <dependencies>
>          <dependency>
>              <groupId>org.apache.tika</groupId>
>              <artifactId>tika-core</artifactId>
>              <version>${tika.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.tika</groupId>
> <artifactId>tika-parsers-standard-package</artifactId>
>              <version>${tika.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.slf4j</groupId>
>              <artifactId>slf4j-simple</artifactId>
>              <version>${slf4j.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.bouncycastle</groupId>
>              <artifactId>bcprov-jdk18on</artifactId>
>              <version>${bouncycastle.version}</version>
>          </dependency>
>      </dependencies>
>
> What happens if you add this on top of your code?
>
> System.out.println(org.apache.tika.parser.pdf.PDFParser.PASSWORD);
>
> it should output "org.apache.tika.parser.pdf.password". This is to test
> if the PDF parser is in your class path.
>
> Tilman
>

Reply via email to