Class HTMLTextStylingTransformer
java.lang.Object
fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
fr.opensagres.xdocreport.document.textstyling.html.HTMLTextStylingTransformer
- All Implemented Interfaces:
ITextStylingTransformer
HTML text styling transformer to transform HTML to another document kind (odt, docx, etc) syntax. The ODT, DOCX is
represented with the given
IDocumentHandler.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoTransform(String content, IDocumentHandler documentHandler) Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc).protected StringgenerateXhtmlFromContent(String content) Methods inherited from class fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
transform
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
HTMLTextStylingTransformer
public HTMLTextStylingTransformer()
-
-
Method Details
-
doTransform
Description copied from class:AbstractTextStylingTransformerTransform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc). The given visitor can be used to process the transformation.- Specified by:
doTransformin classAbstractTextStylingTransformer- Parameters:
content- the content to transform.documentHandler- the document handler used for the transformation.- Throws:
Exception
-
generateXhtmlFromContent
- Throws:
Exception
-