5

I have installed the tabula library for reading pdf into a pandas dataframe using python. But when I run the code

import tabula
df=tabula.read_pdf("sample1.pdf",pages='1')

I get the Exception.

SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed

Solutions I have tried:

  1. Re-installing the Java JDK and ensuring it is added to path(verified with java-version)
  2. Installed the Java Advanced Imaging tools from this link and restarting my system
  3. Uninstalling and installing tabula with pip install tabula-py

Please let me know if I overlooked something.

Sachu
  • 191
  • 1
  • 4
  • 15

0 Answers0