Class PrintDocumentMetaData
java.lang.Object
org.apache.pdfbox.examples.pdmodel.PrintDocumentMetaData
This is an example on how to get a documents metadata information.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis will print the documents data.voidprintMetadata(org.apache.pdfbox.pdmodel.PDDocument document) This will print the documents data to System.out.
-
Constructor Details
-
PrintDocumentMetaData
public PrintDocumentMetaData()
-
-
Method Details
-
main
This will print the documents data.- Parameters:
args- The command line arguments.- Throws:
IOException- If there is an error parsing the document.
-
printMetadata
This will print the documents data to System.out.- Parameters:
document- The document to get the metadata from.- Throws:
IOException- If there is an error getting the page count.
-