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 advance usage, see the ExtractTextByArea and the DrawPrintTextLocations examples in this subproject, as well as the ExtractText tool in the tools subproject.
  • Constructor Details

    • ExtractTextSimple

      private ExtractTextSimple()
  • 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.
    • usage

      private static void usage()
      This will print the usage for this document.