I'm using Apache Tika from within Python as follows, to extract images/attachments from PDF files.
subprocess.call(["java", "-jar", "./tika-app-1.10.jar","--extract"+data_dir])
This leads to messages being shown for each extracted attachment, such as "Extracting 'image1.jpg' (image/jpeg) to ./image1.jpg". Is there a way I can hide these types of messages from the output?