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

public final Class RemoveFirstPage

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

This is an example on how to remove pages from a PDF document. Do not use this tool if other pages link to this one or if your document has a structure tree for accessibility unless you are able to fix these as well. In such cases it is better to use the splitter() class which will do these fixes.
Author
Ben Litchfield

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 data.

private static void
usage()

This will print the usage for this document.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RemoveFirstPageback to summary
private RemoveFirstPage()

Method Detail

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

This will print the documents data.

Parameters
args:String[]

The command line arguments.

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

This will print the usage for this document.