We are using iText to generate our Pdfs. Now the requirement is to add custom properties to this PDF. Also, a xml file needs to be generated with these properties.
As you suggested, I tried implementing the customSchema(not sure if this implementation is right) as shown below public class CustomSchema extends XmpSchema { private static final long serialVersionUID = -4551741356974797330L; public static final String LABELID = "ls:LabelId"; public CustomSchema() { super("cusprop"); } public void addLabelId(String labelId) { XmpArray array = new XmpArray(XmpArray.UNORDERED); array.add(labelId); setProperty(LABELID, array); } } But still, getMetadata() method doesn't seem to be reading this property. How can I know, if this property has been set? I could not find any sample code related to this to check if my implementation is correct. 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 iText-questions@lists.sourceforge.net 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