public static String getStringContent(
File documentFile, TikaConfig config, String mimeType)
throws TikaException, IOException {
Metadata metadata = new Metadata();
InputStream stream = TikaInputStream.get(documentFile, metadata);
return new Tika(config).parseToString(stream, metadata);
}