Example usage for com.itextpdf.text.xml.xmp DublinCoreSchema TITLE

List of usage examples for com.itextpdf.text.xml.xmp DublinCoreSchema TITLE

Introduction

In this page you can find the example usage for com.itextpdf.text.xml.xmp DublinCoreSchema TITLE.

Prototype

String TITLE

To view the source code for com.itextpdf.text.xml.xmp DublinCoreSchema TITLE.

Click Source Link

Document

The title of the document, or the name given to the resource.

Usage

From source file:org.crossref.pdfmark.unixref.Journal.java

License:Open Source License

public void writeXmp(SchemaSet schemaSet) throws XPathExpressionException {
    JournalArticle article = getArticle();
    XmpSchema dc = schemaSet.getDc();//from   w ww  .  j  a  v  a 2s  . com
    XmpSchema prism = schemaSet.getPrism();
    XmpSchema pdfx = schemaSet.getPdfx();

    addToSchema(dc, DublinCoreSchema.CREATOR, article.getContributors());
    addToSchema(dc, DublinCoreSchema.TITLE, article.getTitles());
    addToSchema(dc, DublinCoreSchema.DATE, article.getDate());
    addToSchema(dc, DublinCoreSchema.IDENTIFIER, article.getDoi());

    addToSchema(prism, Prism21Schema.PUBLICATION_DATE, article.getDate());
    addToSchema(prism, Prism21Schema.DOI, article.getDoi());
    addToSchema(prism, Prism21Schema.ISSN, getPreferredIssn());
    addToSchema(prism, Prism21Schema.E_ISSN, getElectronicIssn());
    addToSchema(prism, Prism21Schema.ISSUE_IDENTIFIER, getDoi());
    addToSchema(prism, Prism21Schema.PUBLICATION_NAME, getFullTitle());
    addToSchema(prism, Prism21Schema.VOLUME, getVolume());
    addToSchema(prism, Prism21Schema.NUMBER, getIssue());
    addToSchema(prism, Prism21Schema.STARTING_PAGE, article.getFirstPage());
    addToSchema(prism, Prism21Schema.ENDING_PAGE, article.getLastPage());
    addToSchema(prism, Prism21Schema.URL, MarkBuilder.getUrlForDoi(article.getDoi()));

    addToSchema(pdfx, PdfxSchema.DOI, article.getDoi());
}