You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't reproduce the hanging problem with the input PDF file you mentioned on Ubuntu Linux 18.0.4 with Python 3.7.3 and OpenJDK 11.0.4. I suspect some sort of platform-specific jpype weirdness, but I unfortunately don't have a MacOS box to debug this. I'll leave the issue open for the time being in case anyone who can investigate further has further input.
I finally obtained access to a MacOS box. I can't reproduce the problem with Python 3.8.5, OpenJDK 14.0.2, and python-pdfbox 0.1.8 on MacOS 10.15.6; processing the indicated file succeeds without any error.
I had the same issue also on macOS Mojave and this Java JDK version:
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
I installed the openJDK 15 from here and that fixed the issue.
Activity
adarsa commentedon Nov 12, 2019
I have the same issue. Did you find a solution to this?
devcsrj commentedon Nov 12, 2019
@adarsa Not really no. I ended up abandoning pdfbox altogether, and used tesseract to extract text instead.
lebedov commentedon Nov 12, 2019
Does this occur with all PDFs, or only with some? If the latter, can you attach it to this issue?
devcsrj commentedon Nov 12, 2019
@lebedov I haven't had the chance to try it on other PDFs, but as for the file I am using in the screenshot, it is this one.
lebedov commentedon Nov 13, 2019
I can't reproduce the hanging problem with the input PDF file you mentioned on Ubuntu Linux 18.0.4 with Python 3.7.3 and OpenJDK 11.0.4. I suspect some sort of platform-specific jpype weirdness, but I unfortunately don't have a MacOS box to debug this. I'll leave the issue open for the time being in case anyone who can investigate further has further input.
[-]ExtractText is stuck[/-][+]text extraction hangs on MacOS 10.14[/+]adarsa commentedon Nov 25, 2019
I had this issue with all pdf's I tried.
suiyuan2009 commentedon Apr 13, 2020
+1
sprakash93 commentedon Jun 2, 2020
+1
lebedov commentedon Aug 5, 2020
I finally obtained access to a MacOS box. I can't reproduce the problem with Python 3.8.5, OpenJDK 14.0.2, and python-pdfbox 0.1.8 on MacOS 10.15.6; processing the indicated file succeeds without any error.
jpheuz commentedon Jan 12, 2021
I had the same issue also on macOS Mojave and this Java JDK version:
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
I installed the openJDK 15 from here and that fixed the issue.
lebedov commentedon Jan 12, 2021
@peterHeuz Given that more than person has encountered the issue on MacOS, I added a note to the package README.