Class ExtractMetadata
java.lang.Object
org.apache.pdfbox.examples.pdmodel.ExtractMetadata
This is an example on how to extract metadata from a PDF document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidprivate static Stringprivate static voidlistCalendar(String title, List<Calendar> list) private static voidlistString(String title, List<String> list) static voidThis is the main method.private static voidshowAdobePDFSchema(XMPMetadata metadata) private static voidshowDocumentInformation(PDDocumentInformation information) private static voidshowDublinCoreSchema(XMPMetadata metadata) private static voidshowXMPBasicSchema(XMPMetadata metadata) private static voidusage()This will print the usage for this program.
-
Constructor Details
-
ExtractMetadata
private ExtractMetadata()
-
-
Method Details
-
main
public static void main(String[] args) throws IOException, XmpParsingException, BadFieldValueException This is the main method.- Parameters:
args- The command line arguments.- Throws:
IOException- If there is an error parsing the document.XmpParsingExceptionBadFieldValueException
-
showXMPBasicSchema
-
showAdobePDFSchema
-
showDublinCoreSchema
- Throws:
BadFieldValueException
-
showDocumentInformation
-
listString
-
listCalendar
-
format
-
display
-
usage
private static void usage()This will print the usage for this program.
-