Class HtmlExporterNonXSLT

java.lang.Object
org.docx4j.convert.out.html.HtmlExporterNonXSLT

public class HtmlExporterNonXSLT extends Object
Deprecated.
Running Xalan extension functions on Android is problematic: http://stackoverflow.com/questions/10579339/is-it-possible-to-call-a-java-extension-function-from-xalan-on-android so this uses TraversalUtils to generate HTML output without any need for Xalan or XSLT. We could use a simple JAXB model of HTML, but instead this class uses org.w3c.dom to construct the HTML document. This class might be neater if it used CompoundTraversalUtilVisitorCallback, but it would be less obvious what is going on.
Author:
jharrop
  • Field Details

    • DEFAULT_OUTPUT_SIZE

      protected static final int DEFAULT_OUTPUT_SIZE
      Deprecated.
      See Also:
    • inputfilepath

      protected static String inputfilepath
      Deprecated.
    • outputfilepath

      protected static String outputfilepath
      Deprecated.
    • htmlSettings

      protected HTMLSettings htmlSettings
      Deprecated.
  • Constructor Details

  • Method Details

    • export

      public Document export()
      Deprecated.
      Generate HTML for the entire MainDocumentPart.
      Returns:
    • getCss

      public String getCss()
      Deprecated.
    • export

      public Document export(Object blockLevelContent, String cssClass, String cssId)
      Deprecated.
      Generate HTML for the specified content.
      Don't expect this method to work, the conversion process relies on a structure that has been preprocessed and is based on the complete document. Some examples where this method probably fails with a NPE:
      • images
      • fields
      • bookmarks
      • links
      Parameters:
      blockLevelContent -
      Returns:
    • main

      public static void main(String[] args) throws Exception
      Deprecated.
      Parameters:
      args -
      Throws:
      Exception