Package org.apache.poi.hwpf.converter
Class WordToFoConverter
- java.lang.Object
-
- org.apache.poi.hwpf.converter.AbstractWordConverter
-
- org.apache.poi.hwpf.converter.WordToFoConverter
-
@Beta public class WordToFoConverter extends AbstractWordConverter
-
-
Constructor Summary
Constructors Constructor Description WordToFoConverter(FoDocumentFacade foDocumentFacade)
WordToFoConverter(org.w3c.dom.Document document)
Creates new instance ofWordToFoConverter
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
getDocument()
boolean
isOutputCharactersLanguage()
static void
main(java.lang.String[] args)
Java main() interface to interact withWordToFoConverter
void
setOutputCharactersLanguage(boolean outputCharactersLanguage)
-
Methods inherited from class org.apache.poi.hwpf.converter.AbstractWordConverter
getFontReplacer, getPicturesManager, processDocument, setFontReplacer, setPicturesManager
-
-
-
-
Constructor Detail
-
WordToFoConverter
public WordToFoConverter(org.w3c.dom.Document document)
Creates new instance ofWordToFoConverter
. Can be used for output severalHWPFDocument
s into single FO document.- Parameters:
document
- XML DOM Document used as XSL FO document. Shall support namespaces
-
WordToFoConverter
public WordToFoConverter(FoDocumentFacade foDocumentFacade)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Java main() interface to interact withWordToFoConverter
Usage: WordToFoConverter infile outfile
Where infile is an input .doc file ( Word 97-2007) which will be rendered as XSL-FO into outfile- Throws:
java.lang.Exception
-
getDocument
public org.w3c.dom.Document getDocument()
- Specified by:
getDocument
in classAbstractWordConverter
-
isOutputCharactersLanguage
public boolean isOutputCharactersLanguage()
-
setOutputCharactersLanguage
public void setOutputCharactersLanguage(boolean outputCharactersLanguage)
-
-