com.itextpdf.text.xml.xmp
Class DublinCoreProperties

java.lang.Object
  extended by com.itextpdf.text.xml.xmp.DublinCoreProperties

public class DublinCoreProperties
extends Object


Field Summary
static String CONTRIBUTOR
          External Contributors to the resource (other than the authors).
static String COVERAGE
          The extent or scope of the resource.
static String CREATOR
          The authors of the resource (listed in order of precedence, if significant).
static String DATE
          Date(s) that something interesting happened to the resource.
static String DESCRIPTION
          A textual description of the content of the resource.
static String FORMAT
          The file format used when saving the resource.
static String IDENTIFIER
          Unique identifier of the resource.
static String LANGUAGE
          An unordered array specifying the languages used in the resource.
static String PUBLISHER
          Publishers.
static String RELATION
          Relationships to other documents.
static String RIGHTS
          Informal rights statement, selected by language.
static String SOURCE
          Unique identifier of the work from which this resource was derived.
static String SUBJECT
          An unordered array of descriptive phrases or keywords that specify the topic of the content of the resource.
static String TITLE
          The title of the document, or the name given to the resource.
static String TYPE
          A document type; for example, novel, poem, or working paper.
 
Constructor Summary
DublinCoreProperties()
           
 
Method Summary
static void addAuthor(XMPMeta xmpMeta, String author)
          Adds a single author.
static void addDescription(XMPMeta xmpMeta, String desc)
          Adds a description.
static void addPublisher(XMPMeta xmpMeta, String publisher)
          Adds a single publisher.
static void addSubject(XMPMeta xmpMeta, String subject)
          Adds a subject.
static void addTitle(XMPMeta xmpMeta, String title)
          Adds a title.
static void setAuthor(XMPMeta xmpMeta, String[] author)
          Sets an array of authors.
static void setDescription(XMPMeta xmpMeta, String desc, String genericLang, String specificLang)
          Sets a description.
static void setPublisher(XMPMeta xmpMeta, String[] publisher)
          Sets an array of publishers.
static void setSubject(XMPMeta xmpMeta, String[] subject)
          Sets a subject.
static void setTitle(XMPMeta xmpMeta, String title, String genericLang, String specificLang)
          Sets a title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTRIBUTOR

public static final String CONTRIBUTOR
External Contributors to the resource (other than the authors).

See Also:
Constant Field Values

COVERAGE

public static final String COVERAGE
The extent or scope of the resource.

See Also:
Constant Field Values

CREATOR

public static final String CREATOR
The authors of the resource (listed in order of precedence, if significant).

See Also:
Constant Field Values

DATE

public static final String DATE
Date(s) that something interesting happened to the resource.

See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
A textual description of the content of the resource. Multiple values may be present for different languages.

See Also:
Constant Field Values

FORMAT

public static final String FORMAT
The file format used when saving the resource. Tools and applications should set this property to the save format of the data. It may include appropriate qualifiers.

See Also:
Constant Field Values

IDENTIFIER

public static final String IDENTIFIER
Unique identifier of the resource.

See Also:
Constant Field Values

LANGUAGE

public static final String LANGUAGE
An unordered array specifying the languages used in the resource.

See Also:
Constant Field Values

PUBLISHER

public static final String PUBLISHER
Publishers.

See Also:
Constant Field Values

RELATION

public static final String RELATION
Relationships to other documents.

See Also:
Constant Field Values

RIGHTS

public static final String RIGHTS
Informal rights statement, selected by language.

See Also:
Constant Field Values

SOURCE

public static final String SOURCE
Unique identifier of the work from which this resource was derived.

See Also:
Constant Field Values

SUBJECT

public static final String SUBJECT
An unordered array of descriptive phrases or keywords that specify the topic of the content of the resource.

See Also:
Constant Field Values

TITLE

public static final String TITLE
The title of the document, or the name given to the resource. Typically, it will be a name by which the resource is formally known.

See Also:
Constant Field Values

TYPE

public static final String TYPE
A document type; for example, novel, poem, or working paper.

See Also:
Constant Field Values
Constructor Detail

DublinCoreProperties

public DublinCoreProperties()
Method Detail

addTitle

public static void addTitle(XMPMeta xmpMeta,
                            String title)
                     throws XMPException
Adds a title.

Parameters:
xmpMeta -
title -
Throws:
XMPException

setTitle

public static void setTitle(XMPMeta xmpMeta,
                            String title,
                            String genericLang,
                            String specificLang)
                     throws XMPException
Sets a title.

Parameters:
xmpMeta -
title -
genericLang - The name of the generic language
specificLang - The name of the specific language
Throws:
XMPException

addDescription

public static void addDescription(XMPMeta xmpMeta,
                                  String desc)
                           throws XMPException
Adds a description.

Parameters:
xmpMeta -
desc -
Throws:
XMPException

setDescription

public static void setDescription(XMPMeta xmpMeta,
                                  String desc,
                                  String genericLang,
                                  String specificLang)
                           throws XMPException
Sets a description.

Parameters:
xmpMeta -
desc -
genericLang - The name of the generic language
specificLang - The name of the specific language
Throws:
XMPException

addSubject

public static void addSubject(XMPMeta xmpMeta,
                              String subject)
                       throws XMPException
Adds a subject.

Parameters:
xmpMeta -
subject -
Throws:
XMPException

setSubject

public static void setSubject(XMPMeta xmpMeta,
                              String[] subject)
                       throws XMPException
Sets a subject.

Parameters:
xmpMeta -
subject - array of subjects
Throws:
XMPException

addAuthor

public static void addAuthor(XMPMeta xmpMeta,
                             String author)
                      throws XMPException
Adds a single author.

Parameters:
xmpMeta -
author -
Throws:
XMPException

setAuthor

public static void setAuthor(XMPMeta xmpMeta,
                             String[] author)
                      throws XMPException
Sets an array of authors.

Parameters:
xmpMeta -
author -
Throws:
XMPException

addPublisher

public static void addPublisher(XMPMeta xmpMeta,
                                String publisher)
                         throws XMPException
Adds a single publisher.

Parameters:
xmpMeta -
publisher -
Throws:
XMPException

setPublisher

public static void setPublisher(XMPMeta xmpMeta,
                                String[] publisher)
                         throws XMPException
Sets an array of publishers.

Parameters:
xmpMeta -
publisher -
Throws:
XMPException


Copyright © 2015. All Rights Reserved.