Class ExtractTextSimple

java.lang.Object
org.apache.pdfbox.examples.util.ExtractTextSimple

public class ExtractTextSimple extends Object
This is a simple text extraction example to get started. For more advanced usage, see the ExtractTextByArea and the DrawPrintTextLocations examples in this subproject, as well as the ExtractText tool in the tools subproject.
Author:
Tilman Hausherr
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      This will print the documents text page by page.
      Parameters:
      args - The command line arguments.
      Throws:
      IOException - If there is an error parsing or extracting the document.