@Beta public class WordToFoConverter extends AbstractWordConverter
| Modifier and Type | Field and Description |
|---|---|
protected FoDocumentFacade |
foDocumentFacade |
UNICODECHAR_NO_BREAK_SPACE, UNICODECHAR_NONBREAKING_HYPHEN, UNICODECHAR_ZERO_WIDTH_SPACE| Constructor and Description |
|---|
WordToFoConverter(org.w3c.dom.Document document)
Creates new instance of
WordToFoConverter. |
WordToFoConverter(FoDocumentFacade foDocumentFacade) |
| Modifier and Type | Method and Description |
|---|---|
protected org.w3c.dom.Element |
createNoteInline(java.lang.String noteIndexText) |
protected java.lang.String |
createPageMaster(Section section,
java.lang.String type,
int sectionIndex) |
org.w3c.dom.Document |
getDocument() |
boolean |
isOutputCharactersLanguage() |
static void |
main(java.lang.String[] args)
Java main() interface to interact with
WordToFoConverter |
protected void |
outputCharacters(org.w3c.dom.Element block,
CharacterRun characterRun,
java.lang.String text) |
protected void |
processBookmarks(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range range,
int currentTableLevel,
java.util.List<Bookmark> rangeBookmarks)
Wrap range into bookmark(s) and process it.
|
protected void |
processDocumentInformation(SummaryInformation summaryInformation) |
protected void |
processDrawnObject(HWPFDocument doc,
CharacterRun characterRun,
OfficeDrawing officeDrawing,
java.lang.String path,
org.w3c.dom.Element block) |
protected void |
processEndnoteAutonumbered(HWPFDocument wordDocument,
int noteIndex,
org.w3c.dom.Element block,
Range endnoteTextRange) |
protected void |
processFootnoteAutonumbered(HWPFDocument wordDocument,
int noteIndex,
org.w3c.dom.Element block,
Range footnoteTextRange) |
protected void |
processHyperlink(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range textRange,
int currentTableLevel,
java.lang.String hyperlink) |
protected void |
processImage(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture,
java.lang.String url) |
protected void |
processImageWithoutPicturesManager(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture) |
protected void |
processLineBreak(org.w3c.dom.Element block,
CharacterRun characterRun) |
protected void |
processPageBreak(HWPFDocumentCore wordDocument,
org.w3c.dom.Element flow) |
protected void |
processPageref(HWPFDocumentCore hwpfDocument,
org.w3c.dom.Element currentBlock,
Range textRange,
int currentTableLevel,
java.lang.String pageref) |
protected void |
processParagraph(HWPFDocumentCore hwpfDocument,
org.w3c.dom.Element parentFopElement,
int currentTableLevel,
Paragraph paragraph,
java.lang.String bulletText) |
protected void |
processSection(HWPFDocumentCore wordDocument,
Section section,
int sectionCounter) |
protected void |
processTable(HWPFDocumentCore wordDocument,
org.w3c.dom.Element flow,
Table table) |
protected boolean |
setId(org.w3c.dom.Element element,
java.lang.String id) |
void |
setOutputCharactersLanguage(boolean outputCharactersLanguage) |
afterProcess, getCharacterRunTriplet, getFontReplacer, getNumberColumnsSpanned, getNumberRowsSpanned, getPicturesManager, processCharacters, processDeadField, processDocument, processDocumentPart, processDrawnObject, processDropDownList, processField, processImage, processNoteAnchor, processOle2, processParagraphes, processSingleSection, processSymbol, setFontReplacer, setPicturesManager, tryDeadFieldprotected final FoDocumentFacade foDocumentFacade
public WordToFoConverter(org.w3c.dom.Document document)
WordToFoConverter. Can be used for output
several HWPFDocuments into single FO document.document - XML DOM Document used as XSL FO document. Shall support
namespacespublic WordToFoConverter(FoDocumentFacade foDocumentFacade)
public static void main(java.lang.String[] args)
throws java.lang.Exception
WordToFoConverter
Usage: WordToFoConverter infile outfile
Where infile is an input .doc file ( Word 97-2007) which will be rendered as XSL-FO into outfilejava.lang.Exceptionprotected org.w3c.dom.Element createNoteInline(java.lang.String noteIndexText)
protected java.lang.String createPageMaster(Section section, java.lang.String type, int sectionIndex)
public org.w3c.dom.Document getDocument()
getDocument in class AbstractWordConverterpublic boolean isOutputCharactersLanguage()
protected void outputCharacters(org.w3c.dom.Element block,
CharacterRun characterRun,
java.lang.String text)
outputCharacters in class AbstractWordConverterprotected void processBookmarks(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range range, int currentTableLevel, java.util.List<Bookmark> rangeBookmarks)
AbstractWordConverterprocessBookmarks in class AbstractWordConverterprotected void processDocumentInformation(SummaryInformation summaryInformation)
processDocumentInformation in class AbstractWordConverterprotected void processDrawnObject(HWPFDocument doc, CharacterRun characterRun, OfficeDrawing officeDrawing, java.lang.String path, org.w3c.dom.Element block)
processDrawnObject in class AbstractWordConverterprotected void processEndnoteAutonumbered(HWPFDocument wordDocument, int noteIndex, org.w3c.dom.Element block, Range endnoteTextRange)
processEndnoteAutonumbered in class AbstractWordConverterprotected void processFootnoteAutonumbered(HWPFDocument wordDocument, int noteIndex, org.w3c.dom.Element block, Range footnoteTextRange)
processFootnoteAutonumbered in class AbstractWordConverterprotected void processHyperlink(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range textRange, int currentTableLevel, java.lang.String hyperlink)
processHyperlink in class AbstractWordConverterprotected void processImage(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture,
java.lang.String url)
processImage in class AbstractWordConverterprotected void processImageWithoutPicturesManager(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture)
processImageWithoutPicturesManager in class AbstractWordConverterprotected void processLineBreak(org.w3c.dom.Element block,
CharacterRun characterRun)
processLineBreak in class AbstractWordConverterprotected void processPageBreak(HWPFDocumentCore wordDocument, org.w3c.dom.Element flow)
processPageBreak in class AbstractWordConverterprotected void processPageref(HWPFDocumentCore hwpfDocument, org.w3c.dom.Element currentBlock, Range textRange, int currentTableLevel, java.lang.String pageref)
processPageref in class AbstractWordConverterprotected void processParagraph(HWPFDocumentCore hwpfDocument, org.w3c.dom.Element parentFopElement, int currentTableLevel, Paragraph paragraph, java.lang.String bulletText)
processParagraph in class AbstractWordConverterprotected void processSection(HWPFDocumentCore wordDocument, Section section, int sectionCounter)
processSection in class AbstractWordConverterprotected void processTable(HWPFDocumentCore wordDocument, org.w3c.dom.Element flow, Table table)
processTable in class AbstractWordConverterprotected boolean setId(org.w3c.dom.Element element,
java.lang.String id)
public void setOutputCharactersLanguage(boolean outputCharactersLanguage)
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.