|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.examples.pdmodel.PrintDocumentMetaData
public class PrintDocumentMetaData
This is an example on how to get a documents metadata information. Usage: java org.apache.pdfbox.examples.pdmodel.PrintDocumentMetaData <input-pdf>
Constructor Summary | |
---|---|
PrintDocumentMetaData()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
This will print the documents data. |
void |
printMetadata(PDDocument document)
This will print the documents data to System.out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintDocumentMetaData()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line arguments.
java.lang.Exception
- If there is an error parsing the document.public void printMetadata(PDDocument document) throws java.io.IOException
document
- The document to get the metadata from.
java.io.IOException
- If there is an error getting the page count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |