Examples of XmpReader


Examples of com.lowagie.text.xml.xmp.XmpReader

        // if there is XMP data to add: add it
        PdfDate date = new PdfDate();
        if (altMetadata != null) {
          PdfStream xmp;
          try {
            XmpReader xmpr = new XmpReader(altMetadata);
            if (!xmpr.replace("http://ns.adobe.com/pdf/1.3/", "Producer", producer))
              xmpr.add("rdf:Description", "http://ns.adobe.com/pdf/1.3/", "pdf:Producer", producer);
            if (!xmpr.replace("http://ns.adobe.com/xap/1.0/", "ModifyDate", date.getW3CDate()))
              xmpr.add("rdf:Description", "http://ns.adobe.com/xap/1.0/", "xmp:ModifyDate", date.getW3CDate());
            xmpr.replace("http://ns.adobe.com/xap/1.0/", "MetadataDate", date.getW3CDate());
              xmp = new PdfStream(xmpr.serializeDoc());
          }
          catch(SAXException e) {
            xmp = new PdfStream(altMetadata);
          }
          catch(IOException e) {
View Full Code Here

Examples of com.lowagie.text.xml.xmp.XmpReader

        // if there is XMP data to add: add it
        PdfDate date = new PdfDate();
        if (altMetadata != null) {
          PdfStream xmp;
          try {
            XmpReader xmpr = new XmpReader(altMetadata);
            if (!xmpr.replace("http://ns.adobe.com/pdf/1.3/", "Producer", producer))
              xmpr.add("rdf:Description", "http://ns.adobe.com/pdf/1.3/", "pdf:Producer", producer);
            if (!xmpr.replace("http://ns.adobe.com/xap/1.0/", "ModifyDate", date.getW3CDate()))
              xmpr.add("rdf:Description", "http://ns.adobe.com/xap/1.0/", "xmp:ModifyDate", date.getW3CDate());
            xmpr.replace("http://ns.adobe.com/xap/1.0/", "MetadataDate", date.getW3CDate());
              xmp = new PdfStream(xmpr.serializeDoc());
          }
          catch(SAXException e) {
            xmp = new PdfStream(altMetadata);
          }
          catch(IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.