Top Description Constructors Methods
org.apache.pdfbox.examples.pdmodel

public final Class AddMetadataFromDocInfo

extends Object
Class Inheritance
Imports
org.apache.pdfbox.Loader, org.apache.pdfbox.pdmodel.PDDocument, .PDDocumentCatalog, .PDDocumentInformation, org.apache.pdfbox.pdmodel.common.PDMetadata, org.apache.xmpbox.XMPMetadata, org.apache.xmpbox.schema.AdobePDFSchema, .DublinCoreSchema, .XMPBasicSchema, org.apache.xmpbox.xml.XmpSerializer, java.io.ByteArrayOutputStream, .File, .IOException, java.util.GregorianCalendar, javax.xml.transform.TransformerException

This is an example on how to add metadata to a document.
Author
Ben Litchfield

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[]
The command line arguments.
args
)

This will print the documents data.

private static void
usage()

This will print the usage for this document.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AddMetadataFromDocInfoback to summary
private AddMetadataFromDocInfo()

Method Detail

mainback to summary
public static void main(String[] args) throws IOException, TransformerException

This will print the documents data.

Parameters
args:String[]

The command line arguments.

Exceptions
IOException:
If there is an error parsing the document.
usageback to summary
private static void usage()

This will print the usage for this document.