Search in sources :

Example 21 with TextType

use of org.apache.xmpbox.type.TextType in project pdfbox by apache.

the class AdobePDFSchema method setPDFVersion.

/**
 * Set the PDFVersion
 *
 * @param value
 *            Value to set
 */
public void setPDFVersion(String value) {
    TextType version;
    version = createTextType(PDF_VERSION, value);
    addProperty(version);
}
Also used : TextType(org.apache.xmpbox.type.TextType)

Example 22 with TextType

use of org.apache.xmpbox.type.TextType in project pdfbox by apache.

the class PDFAIdentificationSchema method setAmd.

/**
 * Set the PDF/A amendment identifier
 *
 * @param value
 *            The amendment identifier value to set
 */
public void setAmd(String value) {
    TextType amd = createTextType(AMD, value);
    addProperty(amd);
}
Also used : TextType(org.apache.xmpbox.type.TextType)

Example 23 with TextType

use of org.apache.xmpbox.type.TextType in project pdfbox by apache.

the class PhotoshopSchema method setAuthorsPosition.

public void setAuthorsPosition(String text) {
    TextType tt = (TextType) instanciateSimple(AUTHORS_POSITION, text);
    setAuthorsPositionProperty(tt);
}
Also used : TextType(org.apache.xmpbox.type.TextType)

Example 24 with TextType

use of org.apache.xmpbox.type.TextType in project pdfbox by apache.

the class PhotoshopSchema method setSupplementalCategories.

public void setSupplementalCategories(String text) {
    TextType tt = (TextType) instanciateSimple(SUPPLEMENTAL_CATEGORIES, text);
    setSupplementalCategoriesProperty(tt);
}
Also used : TextType(org.apache.xmpbox.type.TextType)

Example 25 with TextType

use of org.apache.xmpbox.type.TextType in project pdfbox by apache.

the class PhotoshopSchema method setCity.

public void setCity(String text) {
    TextType tt = (TextType) instanciateSimple(CITY, text);
    setCityProperty(tt);
}
Also used : TextType(org.apache.xmpbox.type.TextType)

Aggregations

TextType (org.apache.xmpbox.type.TextType)37 AbstractField (org.apache.xmpbox.type.AbstractField)5 ArrayProperty (org.apache.xmpbox.type.ArrayProperty)5 Test (org.junit.Test)4 Method (java.lang.reflect.Method)3 Attribute (org.apache.xmpbox.type.Attribute)3 XMPMetadata (org.apache.xmpbox.XMPMetadata)2 InputStream (java.io.InputStream)1 Calendar (java.util.Calendar)1 ValidationError (org.apache.pdfbox.preflight.ValidationResult.ValidationError)1 DublinCoreSchema (org.apache.xmpbox.schema.DublinCoreSchema)1 BadFieldValueException (org.apache.xmpbox.type.BadFieldValueException)1 BooleanType (org.apache.xmpbox.type.BooleanType)1 DateType (org.apache.xmpbox.type.DateType)1 IntegerType (org.apache.xmpbox.type.IntegerType)1 TypeMapping (org.apache.xmpbox.type.TypeMapping)1 URIType (org.apache.xmpbox.type.URIType)1 URLType (org.apache.xmpbox.type.URLType)1 DomXmpParser (org.apache.xmpbox.xml.DomXmpParser)1