Package org.apache.pdfbox.examples.util
Class ExtractTextSimple
- java.lang.Object
-
- org.apache.pdfbox.examples.util.ExtractTextSimple
-
public class ExtractTextSimple extends java.lang.ObjectThis 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExtractTextSimple()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)This will print the documents text page by page.private static voidusage()This will print the usage for this document.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will print the documents text page by page.- Parameters:
args- The command line arguments.- Throws:
java.io.IOException- If there is an error parsing or extracting the document.
-
usage
private static void usage()
This will print the usage for this document.
-
-