public class PrintDocumentMetaData extends Object
| Constructor and Description |
|---|
PrintDocumentMetaData() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
This will print the documents data.
|
void |
printMetadata(org.apache.pdfbox.pdmodel.PDDocument document)
This will print the documents data to System.out.
|
public static void main(String[] args) throws Exception
args - The command line arguments.Exception - If there is an error parsing the document.public void printMetadata(org.apache.pdfbox.pdmodel.PDDocument document)
throws IOException
document - The document to get the metadata from.IOException - If there is an error getting the page count.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.