Top Description Constructors Methods
org.apache.pdfbox.examples.util

public Class ExtractTextSimple

extends Object
Class Inheritance
Imports
java.io.File, .IOException, org.apache.pdfbox.Loader, org.apache.pdfbox.pdmodel.PDDocument, org.apache.pdfbox.pdmodel.encryption.AccessPermission, org.apache.pdfbox.text.PDFTextStripper

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[]
The command line arguments.
args
)

This will print the documents text page by page.

private static void
usage()

This will print the usage for this document.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExtractTextSimpleback to summary
private ExtractTextSimple()

Method Detail

mainback to summary
public static void main(String[] args) throws IOException

This will print the documents text page by page.

Parameters
args:String[]

The command line arguments.

Exceptions
IOException:
If there is an error parsing or extracting the document.
usageback to summary
private static void usage()

This will print the usage for this document.