java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.XmlResolver

public class XmlResolver extends Object
Converts annotations from XML to INI.
  • Field Details

    • LOGGER

      protected static final com.saperion.common.logging.Logger LOGGER
      Logger.
  • Constructor Details

    • XmlResolver

      public XmlResolver(int originalCount, Map<Integer,Integer> rotationAngles)
      Instantiates a new xml resolver.
      Parameters:
      originalCount - the original annotation count
      rotationAngles - the angles in degrees the document's pages were rotated
  • Method Details

    • convertXmlToIni

      public String convertXmlToIni(byte[] xmlAnnotations) throws jakarta.xml.bind.JAXBException, SAXException
      Converts the annotations in XML format to INI format.
      Parameters:
      xmlAnnotations - annotations in XML format
      Returns:
      annotations in INI format
      Throws:
      SAXException - parsing xmlAnnotations failed
      jakarta.xml.bind.JAXBException - parsing xmlAnnotations failed