Class RMHTMLWriter

java.lang.Object
com.reportmill.output.RMHTMLWriter

public class RMHTMLWriter extends Object
This class generates HTML for a ReportMill RMDocument object. The primary method is htmlMap() which returns a Java.util.Map object containing "htmlBytes" (a byte array) and associated images (with the keys /img.ext).

This class primarily relies on the HTML DIV (Division) tag to create regions for all RMShapes in a given document.

  • Constructor Details

    • RMHTMLWriter

      public RMHTMLWriter(RMDocument aDoc)
      Creates an HTMLWriter for the given doc.
  • Method Details

    • getBytesHTML

      public byte[] getBytesHTML()
      Returns a byte array containing the HTML representation of a document.
    • getMapHTML

      public Map getMapHTML(String imageRoot)
      Returns a Map containing the HTML bytes (with key "htmlBytes") and associated images (use iterator).
    • htmlBytes

      public static byte[] htmlBytes(RMDocument aDoc, String aSource, String aTitle)
      Obsolete - moved to RMHTMLWrapper.
    • htmlString

      public static String htmlString(RMDocument aDoc, String aSource, String aTitle)
      Obsolete - moved to RMHTMLWrapper.