In [1]:
import py4j
from py4j.java_gateway import JavaGateway
In [2]:
gateway = JavaGateway()
gateway.jvm
In [3]:
import os
In [4]:
os.system("java -jar ../java/extractText.jar ../data/ExampleTest.pdf" )
Out[4]:
In [6]:
os.system("java -jar ../java/extractText.jar /home/oier/Desktop/informe_9370208.pdf")
Out[6]:
In [5]:
os.system("java -jar ../java/extractText.jar '/home/oier/Dropbox (Neurita)/Oier Etxaniz/docs peticion de beca UPV 2015/resumen.pdf'")
Out[5]:
In [6]:
os.system("java -jar ../java/extractText.jar /home/oier/Dropbox\ \(Neurita\)/Cancer/cun/informe_9469158.pdf")
Out[6]:
In [ ]: