Uses of Class
com.itextpdf.kernel.xmp.XMPException
Packages that use XMPException
Package
Description
-
Uses of XMPException in com.itextpdf.kernel.pdf
Methods in com.itextpdf.kernel.pdf that throw XMPExceptionModifier and TypeMethodDescriptionPdfDocument.getXmpMetadata()Gets XMP Metadata.PdfDocument.getXmpMetadata(boolean createNew) Gets XMP Metadata or create a new one.static voidPdfConformance.setConformanceToXmp(XMPMeta xmpMeta, PdfConformance conformance) Sets required fields into XMP metadata according to passed PDF conformance.voidPdfDocument.setXmpMetadata(XMPMeta xmpMeta) Sets the XMP Metadata.voidPdfDocument.setXmpMetadata(XMPMeta xmpMeta, SerializeOptions serializeOptions) Sets the XMP Metadata.PdfPage.setXmpMetadata(XMPMeta xmpMeta) Serializes XMP Metadata to byte array and sets it.PdfPage.setXmpMetadata(XMPMeta xmpMeta, SerializeOptions serializeOptions) Serializes XMP Metadata to byte array and sets it.protected XMPMetaPdfDocument.updateDefaultXmpMetadata()Update XMP metadata values fromPdfDocumentInfo. -
Uses of XMPException in com.itextpdf.kernel.xmp
Methods in com.itextpdf.kernel.xmp that throw XMPExceptionModifier and TypeMethodDescriptionvoidXMPMeta.appendArrayItem(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) Simplifies the construction of an array by not requiring that you pre-create an empty array.voidXMPMeta.appendArrayItem(String schemaNS, String arrayName, String itemValue) static voidXMPUtils.appendProperties(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues) Alias without the new optiondeleteEmptyValues.static voidXMPUtils.appendProperties(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) Append properties from one XMP object to another.static StringXMPUtils.catenateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) Create a single edit string from an array of strings.static StringXMPPathFactory.composeArrayItemPath(String arrayName, int itemIndex) Compose the path expression for an item in an array.static StringXMPPathFactory.composeFieldSelector(String arrayName, String fieldNS, String fieldName, String fieldValue) Compose the path expression to select an alternate item by a field's value.static StringXMPPathFactory.composeQualifierPath(String qualNS, String qualName) Compose the path expression for a qualifier.static StringXMPPathFactory.composeStructFieldPath(String fieldNS, String fieldName) Compose the path expression for a field in a struct.static booleanXMPUtils.convertToBoolean(String value) Convert from string to Boolean.static XMPDateTimeXMPUtils.convertToDate(String rawValue) Converts a string value to anXMPDateTime.static doubleXMPUtils.convertToDouble(String rawValue) Converts a string value to adouble.static intXMPUtils.convertToInteger(String rawValue) Converts a string value to anint.static longXMPUtils.convertToLong(String rawValue) Converts a string value to along.intXMPMeta.countArrayItems(String schemaNS, String arrayName) Returns the number of items in the array.static XMPDateTimeXMPDateTimeFactory.createFromISO8601(String strValue) Creates anXMPDateTimefrom an ISO 8601 string.static byte[]XMPUtils.decodeBase64(String base64String) Decode from Base64 encoded string to raw data.XMPMeta.getArrayItem(String schemaNS, String arrayName, int itemIndex) Provides access to items within an array.XMPMeta.getLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang) These functions provide convenient support for localized text properties, including a number of special and obscure aspects.XMPMeta.getProperty(String schemaNS, String propName) The property value getter-methods all take a property specification: the first two parameters are always the top level namespace URI (the "schema" namespace) and the basic name of the property being referenced.byte[]XMPMeta.getPropertyBase64(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyBoolean(String schemaNS, String propName) These are very similar togetProperty()andSetProperty()above, but the value is returned or provided in a literal form instead of as a UTF-8 string.XMPMeta.getPropertyCalendar(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyDate(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyDouble(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyInteger(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyLong(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyString(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getQualifier(String schemaNS, String propName, String qualNS, String qualName) Provides access to a qualifier attached to a property.XMPMeta.getStructField(String schemaNS, String structName, String fieldNS, String fieldName) Provides access to fields within a nested structure.voidXMPMeta.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMeta.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Inserts an item into an array previous to the given index.XMPMeta.iterator()Constructs an iterator for the properties within this XMP object.XMPMeta.iterator(IteratorOptions options) Constructs an iterator for the properties within this XMP object using some options.XMPMeta.iterator(String schemaNS, String propName, IteratorOptions options) Construct an iterator for the properties within an XMP object.voidXMPMeta.normalize(ParseOptions options) Perform the normalization as a separate parsing step.static XMPMetaXMPMetaFactory.parse(InputStream in) Parsing with default options.static XMPMetaXMPMetaFactory.parse(InputStream in, ParseOptions options) These functions support parsing serialized RDF into an XMP object, and serailizing an XMP object into RDF.static XMPMetaXMPMetaFactory.parseFromBuffer(byte[] buffer) Parsing with default options.static XMPMetaXMPMetaFactory.parseFromBuffer(byte[] buffer, ParseOptions options) Creates anXMPMeta-object from a byte-buffer.static XMPMetaXMPMetaFactory.parseFromString(String packet) Parsing with default options.static XMPMetaXMPMetaFactory.parseFromString(String packet, ParseOptions options) Creates anXMPMeta-object from a string.XMPSchemaRegistry.registerNamespace(String namespaceURI, String suggestedPrefix) Register a namespace URI with a suggested prefix.static voidXMPUtils.removeProperties(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) Remove multiple properties from an XMP object.static voidXMPUtils.separateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) Separate a single edit string into an array of strings.static voidXMPMetaFactory.serialize(XMPMeta xmp, OutputStream out) Serializes anXMPMeta-object as RDF into anOutputStreamwith default options.static voidXMPMetaFactory.serialize(XMPMeta xmp, OutputStream out, SerializeOptions options) Serializes anXMPMeta-object as RDF into anOutputStream.static byte[]XMPMetaFactory.serializeToBuffer(XMPMeta xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a byte buffer.static StringXMPMetaFactory.serializeToString(XMPMeta xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a string.voidXMPMeta.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMeta.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Replaces an item within an array.voidXMPMeta.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) voidXMPMeta.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) Modifies the value of a selected item in an alt-text array.voidXMPMeta.setProperty(String schemaNS, String propName, Object propValue) voidXMPMeta.setProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) The property valuesettersall take a property specification, their differences are in the form of this.voidXMPMeta.setPropertyBase64(String schemaNS, String propName, byte[] propValue) voidXMPMeta.setPropertyBase64(String schemaNS, String propName, byte[] propValue, PropertyOptions options) Convenience method to set a property from a binarybyte[]-array, which is serialized as base64-string.voidXMPMeta.setPropertyBoolean(String schemaNS, String propName, boolean propValue) voidXMPMeta.setPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) Convenience method to set a property to a literalbooleanvalue.voidXMPMeta.setPropertyCalendar(String schemaNS, String propName, Calendar propValue) voidXMPMeta.setPropertyCalendar(String schemaNS, String propName, Calendar propValue, PropertyOptions options) Convenience method to set a property with a Java Calendar-object, which is serialized to an ISO8601 date.voidXMPMeta.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue) voidXMPMeta.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) Convenience method to set a property with an XMPDateTime-object, which is serialized to an ISO8601 date.voidXMPMeta.setPropertyDouble(String schemaNS, String propName, double propValue) voidXMPMeta.setPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) Convenience method to set a property to a literaldoublevalue.voidXMPMeta.setPropertyInteger(String schemaNS, String propName, int propValue) voidXMPMeta.setPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) Convenience method to set a property to a literalintvalue.voidXMPMeta.setPropertyLong(String schemaNS, String propName, long propValue) voidXMPMeta.setPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) Convenience method to set a property to a literallongvalue.voidXMPMeta.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue) voidXMPMeta.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) Provides access to a qualifier attached to a property.voidXMPMeta.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) voidXMPMeta.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) Provides access to fields within a nested structure. -
Uses of XMPException in com.itextpdf.kernel.xmp.impl
Methods in com.itextpdf.kernel.xmp.impl that throw XMPExceptionModifier and TypeMethodDescriptionvoidXMPMetaImpl.appendArrayItem(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) voidXMPMetaImpl.appendArrayItem(String schemaNS, String arrayName, String itemValue) static voidXMPUtilsImpl.appendProperties(XMPMeta source, XMPMeta destination, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) static StringXMPUtilsImpl.catenateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) protected voidXMPSerializerRDF.checkOptionsConsistence()Checks if the supplied options are consistent.intXMPMetaImpl.countArrayItems(String schemaNS, String arrayName) XMPMetaImpl.getArrayItem(String schemaNS, String arrayName, int itemIndex) XMPMetaImpl.getLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang) XMPMetaImpl.getProperty(String schemaNS, String propName) protected XMPPropertyXMPMetaImpl.getProperty(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.byte[]XMPMetaImpl.getPropertyBase64(String schemaNS, String propName) XMPMetaImpl.getPropertyBoolean(String schemaNS, String propName) XMPMetaImpl.getPropertyCalendar(String schemaNS, String propName) XMPMetaImpl.getPropertyDate(String schemaNS, String propName) XMPMetaImpl.getPropertyDouble(String schemaNS, String propName) XMPMetaImpl.getPropertyInteger(String schemaNS, String propName) XMPMetaImpl.getPropertyLong(String schemaNS, String propName) protected ObjectXMPMetaImpl.getPropertyObject(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.XMPMetaImpl.getPropertyString(String schemaNS, String propName) XMPMetaImpl.getQualifier(String schemaNS, String propName, String qualNS, String qualName) XMPMetaImpl.getStructField(String schemaNS, String structName, String fieldNS, String fieldName) voidXMPMetaImpl.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMetaImpl.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) XMPMetaImpl.iterator()XMPMetaImpl.iterator(IteratorOptions options) XMPMetaImpl.iterator(String schemaNS, String propName, IteratorOptions options) voidXMPMetaImpl.normalize(ParseOptions options) static XMPDateTimeConverts an ISO 8601 string to anXMPDateTime.static XMPDateTimeISO8601Converter.parse(String iso8601String, XMPDateTime binValue) static XMPMetaXMPMetaParser.parse(Object input, ParseOptions options) Parses the input source into an XMP metadata object, including de-aliasing and normalisation.XMPSchemaRegistryImpl.registerNamespace(String namespaceURI, String suggestedPrefix) static voidXMPUtilsImpl.removeProperties(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) static voidXMPUtilsImpl.separateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) static voidXMPSerializerHelper.serialize(XMPMetaImpl xmp, OutputStream output, SerializeOptions options) Static method to serialize the metadata object.voidXMPSerializerRDF.serialize(XMPMeta xmp, OutputStream out, SerializeOptions options) The actual serialization.static byte[]XMPSerializerHelper.serializeToBuffer(XMPMetaImpl xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a byte buffer.static StringXMPSerializerHelper.serializeToString(XMPMetaImpl xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a string.voidXMPMetaImpl.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMetaImpl.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) voidXMPMetaImpl.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) voidXMPMetaImpl.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) voidXMPMetaImpl.setProperty(String schemaNS, String propName, Object propValue) voidXMPMetaImpl.setProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyBase64(String schemaNS, String propName, byte[] propValue) voidXMPMetaImpl.setPropertyBase64(String schemaNS, String propName, byte[] propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyBoolean(String schemaNS, String propName, boolean propValue) voidXMPMetaImpl.setPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyCalendar(String schemaNS, String propName, Calendar propValue) voidXMPMetaImpl.setPropertyCalendar(String schemaNS, String propName, Calendar propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue) voidXMPMetaImpl.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyDouble(String schemaNS, String propName, double propValue) voidXMPMetaImpl.setPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyInteger(String schemaNS, String propName, int propValue) voidXMPMetaImpl.setPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyLong(String schemaNS, String propName, long propValue) voidXMPMetaImpl.setPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) voidXMPMetaImpl.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue) voidXMPMetaImpl.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) voidXMPMetaImpl.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) voidXMPMetaImpl.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) Constructors in com.itextpdf.kernel.xmp.impl that throw XMPExceptionModifierConstructorDescriptionXMPDateTimeImpl(String strValue) Creates anXMPDateTime-instance from an ISO 8601 string.XMPIteratorImpl(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options) Constructor with optionsl initial values. -
Uses of XMPException in com.itextpdf.kernel.xmp.impl.xpath
Methods in com.itextpdf.kernel.xmp.impl.xpath that throw XMPExceptionModifier and TypeMethodDescriptionstatic XMPPathXMPPathParser.expandXPath(String schemaNS, String path) Split an XMPPath expression apart at the conceptual steps, adding the root namespace prefix to the first property component. -
Uses of XMPException in com.itextpdf.kernel.xmp.options
Methods in com.itextpdf.kernel.xmp.options that throw XMPExceptionModifier and TypeMethodDescriptionprotected voidOptions.assertConsistency(int options) The inheriting option class can do additional checks on the options.voidPropertyOptions.assertConsistency(int options) Checks that a node not a struct and array at the same time; and URI cannot be a struct.voidPropertyOptions.mergeWith(PropertyOptions options) Merges the set options of a another options object with this.voidOptions.setOptions(int options) AliasOptions.toPropertyOptions()Constructors in com.itextpdf.kernel.xmp.options that throw XMPExceptionModifierConstructorDescriptionAliasOptions(int options) Options(int options) Constructor with the options bit mask.PropertyOptions(int options) Intialization constructorSerializeOptions(int options) Constructor using inital options