Package org.docx4j.convert.out.html
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 intDEFAULT_OUTPUT_SIZEDeprecated.protected HTMLSettingshtmlSettingsDeprecated.protected static java.lang.StringinputfilepathDeprecated.protected static java.lang.StringoutputfilepathDeprecated. -
Constructor Summary
Constructors Constructor Description HtmlExporterNonXSLT(WordprocessingMLPackage wordMLPackage, ConversionImageHandler conversionImageHandler)Deprecated. -
Method Summary
Modifier and Type Method Description org.w3c.dom.Documentexport()Deprecated.Generate HTML for the entire MainDocumentPart.org.w3c.dom.Documentexport(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.StringgetCss()Deprecated.static voidmain(java.lang.String[] args)Deprecated.
-
Field Details
-
DEFAULT_OUTPUT_SIZE
protected static final int DEFAULT_OUTPUT_SIZEDeprecated.- See Also:
- Constant Field Values
-
inputfilepath
protected static java.lang.String inputfilepathDeprecated. -
outputfilepath
protected static java.lang.String outputfilepathDeprecated. -
htmlSettings
Deprecated.
-
-
Constructor Details
-
HtmlExporterNonXSLT
public HtmlExporterNonXSLT(WordprocessingMLPackage wordMLPackage, ConversionImageHandler conversionImageHandler)Deprecated.
-
-
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.ExceptionDeprecated.- Parameters:
args-- Throws:
java.lang.Exception
-