lebedov / python-pdfbox

Python interface to Apache PDFBox command-line tools.
Other
75 stars 24 forks source link

Initializing python package pdfbox throws me out of python #34

Open kumarabhisek91 opened 9 months ago

kumarabhisek91 commented 9 months ago

I used Pip to install pdfbox. When I try to import it at the REPL, it quits the interpreter:

PS D:\AssetExtraction> python Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import pdfbox p = pdfbox.PDFBox() PS D:\AssetExtraction>

The relevant environment variables look OK:

JAVA_HOME D:\Python_385\jre\jdk-17.0.5 PDFBOX D:\Python_385\pdfbox\pdfbox-app-2.0.21.jar

I have PDFBox working on other systems with the same setup but can't get it to work on this machine.