Class PrintDocumentMetaData
- java.lang.Object
-
- org.apache.pdfbox.examples.pdmodel.PrintDocumentMetaData
-
public class PrintDocumentMetaData extends java.lang.ObjectThis is an example on how to get a documents metadata information.- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description PrintDocumentMetaData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)This will print the documents data.voidprintMetadata(org.apache.pdfbox.pdmodel.PDDocument document)This will print the documents data to System.out.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will print the documents data.- Parameters:
args- The command line arguments.- Throws:
java.io.IOException- If there is an error parsing the document.
-
printMetadata
public void printMetadata(org.apache.pdfbox.pdmodel.PDDocument document) throws java.io.IOExceptionThis will print the documents data to System.out.- Parameters:
document- The document to get the metadata from.- Throws:
java.io.IOException- If there is an error getting the page count.
-
-