title: Cloud Vision API - PDF OCR
body: <p>I just tested the Google Cloud Vision API to read the text, if exist, in a image.</p>
  
  <p>Until now I installed the Maven Server and the Redis Server. I just follow the instructions in this page.</p>
  
  <p><a href="https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/java/text" rel="noreferrer">https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/java/text</a></p>
  
  <p>Until now I was able to tested with .jpg files, is it possible to do it with tiff files or pdf?? </p>
  
  <p>I am using the following command:</p>
  
  <pre><code>java -cp target/text-1.0-SNAPSHOT-jar-with-dependencies.jar     com.google.cloud.vision.samples.text.TextApp ../../data/text/
  </code></pre>
  
  <p>Inside the text directory, I have the files in jpg format.</p>
  
  <p>Then to read the converted file, I don't know how to do that, just I run the following command </p>
  
  <pre><code>java -cp target/text-1.0-SNAPSHOT-jar-with-dependencies.jar com.google.cloud.vision.samples.text.TextApp
  </code></pre>
  
  <p>And I get the message to enter a word or phrase to search in the converted files. Is there a way to see the whole document transformed?</p>
  
  <p>Thanks!</p>