Class XmpWriter

java.lang.Object
com.aowagie.text.xml.xmp.XmpWriter

public class XmpWriter extends Object
With this class you can create an Xmp Stream that can be used for adding Metadata to a PDF Dictionary. Remark that this class doesn't cover the complete XMP specification.
  • Constructor Details

    • XmpWriter

      public XmpWriter(OutputStream os) throws IOException
      Creates an XmpWriter.
      Parameters:
      os - output stream to set
      Throws:
      IOException - Exception with a IO error
    • XmpWriter

      public XmpWriter(OutputStream os, PdfDictionary info, int PdfXConformance) throws IOException
      Parameters:
      os - output stream to set
      info - info to set
      PdfXConformance - pdf to set
      Throws:
      IOException - Exception with a IO error
  • Method Details

    • setAbout

      public void setAbout(String about)
      Parameters:
      about - The about to set.
    • addRdfDescription

      public void addRdfDescription(XmpSchema s) throws IOException
      Adds an rdf:Description.
      Parameters:
      s - schema to set
      Throws:
      IOException - Exception with a IO error
    • close

      public void close() throws IOException
      Flushes and closes the XmpWriter.
      Throws:
      IOException - Exception with a IO error