Class HtmlExporterNonXSLT

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

public class HtmlExporterNonXSLT
extends java.lang.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 Summary

    Fields 
    Modifier and Type Field Description
    protected static int DEFAULT_OUTPUT_SIZE
    Deprecated.
     
    protected HTMLSettings htmlSettings
    Deprecated.
     
    protected static java.lang.String inputfilepath
    Deprecated.
     
    protected static java.lang.String outputfilepath
    Deprecated.
     
  • Constructor Summary

    Constructors 
    Constructor Description
    HtmlExporterNonXSLT​(WordprocessingMLPackage wordMLPackage, ConversionImageHandler conversionImageHandler)
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    org.w3c.dom.Document export()
    Deprecated.
    Generate HTML for the entire MainDocumentPart.
    org.w3c.dom.Document export​(java.lang.Object blockLevelContent, java.lang.String cssClass, java.lang.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.
    java.lang.String getCss()
    Deprecated.
     
    static void main​(java.lang.String[] args)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • export

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

      public java.lang.String getCss()
      Deprecated.
    • export

      public org.w3c.dom.Document export​(java.lang.Object blockLevelContent, java.lang.String cssClass, java.lang.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​(java.lang.String[] args) throws java.lang.Exception
      Deprecated.
      Parameters:
      args -
      Throws:
      java.lang.Exception