Package org.docx4j.convert.out.html
Class HtmlExporterNonXSLT
java.lang.Object
org.docx4j.convert.out.html.HtmlExporterNonXSLT
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
FieldsModifier and TypeFieldDescriptionprotected static final intDeprecated.protected HTMLSettingsDeprecated.protected static StringDeprecated.protected static StringDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionHtmlExporterNonXSLT(WordprocessingMLPackage wordMLPackage, ConversionImageHandler conversionImageHandler) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionexport()Deprecated.Generate HTML for the entire MainDocumentPart.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.getCss()Deprecated.static voidDeprecated.
-
Field Details
-
DEFAULT_OUTPUT_SIZE
protected static final int DEFAULT_OUTPUT_SIZEDeprecated.- See Also:
-
inputfilepath
Deprecated. -
outputfilepath
Deprecated. -
htmlSettings
Deprecated.
-
-
Constructor Details
-
HtmlExporterNonXSLT
public HtmlExporterNonXSLT(WordprocessingMLPackage wordMLPackage, ConversionImageHandler conversionImageHandler) Deprecated.
-
-
Method Details
-
export
Deprecated.Generate HTML for the entire MainDocumentPart.- Returns:
-
getCss
Deprecated. -
export
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
Deprecated.- Parameters:
args-- Throws:
Exception
-