Is there any example or documentation with respect to implementing Custom
schema??
Though I implemented the below and it works, I would like to know if this is
the correct way.
What are the variables serialVersionUID, DEFAULT_XPATH_ID and
DEFAULT_XPATH_URI?? Are the values that I have substituted for these are
correct? Where can I find this information?
import com.itextpdf.text.xml.xmp.XmpArray;
import com.itextpdf.text.xml.xmp.XmpSchema;
public class CustomSchema extends XmpSchema {
private static final long serialVersionUID = -4551741356974797330L;
public static final String DEFAULT_XPATH_ID = "ls";
public static final String DEFAULT_XPATH_URI =
"http://www.w3.org/1999/02/22-rdf-syntax-ns#";
public static final String LABELID = "ls:LabelId";
public CustomSchema() {
super("xmlns:" + DEFAULT_XPATH_ID + "=\"" + DEFAULT_XPATH_URI + "\"");
}
public void addLabelId(String labelId) {
XmpArray array = new XmpArray(XmpArray.UNORDERED);
array.add(labelId);
setProperty(LABELID, array);
}
}
Regards,
Deepti
LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to this
e-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this e-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please delete this e-mail and inform the sender immediately.
LAURUS Infosystems, division of Laurus Labs Private Limited, with its principal
place of business at Plot No. 100-101, Export Promotion Industrial Park,
Whitefield, Bangalore 560066.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php