Package writer2latex.epub
Class EPUBConverter
java.lang.Object
writer2latex.base.ConverterBase
writer2latex.xhtml.Converter
writer2latex.xhtml.Xhtml11Converter
writer2latex.epub.EPUBConverter
- All Implemented Interfaces:
Converter
This class converts an OpenDocument file to an EPUB document.
-
Nested Class Summary
Nested classes/interfaces inherited from class writer2latex.base.ConverterBase
ConverterBase.TexMathsStyle
-
Field Summary
Fields inherited from class writer2latex.base.ConverterBase
converterResult, graphicConverter, imageConverter, metaData, odDoc, ofr, sTargetFileName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(InputStream is, String sTargetFileName) Convert a documentConvert a documentMethods inherited from class writer2latex.xhtml.Converter
addContentEntry, addTarget, changeOutFile, convertInner, createElement, createLink, createLink, createTarget, createTextNode, getConfig, getContentWidth, getDrawCv, getL10n, getMathCv, getOutFileIndex, getOutFileName, getPanelNode, getPlainInlineText, getStyleCv, getTableCv, getTextCv, getType, getXhtmlConfig, handleOfficeAnnotation, importNode, isOPS, isTopLevel, nextOutFile, outFileHasContent, popContentWidth, pushContentWidth, readResource, readResource, readStyleSheet, readStyleSheet, readTemplate, readTemplate, setCoverFile, setCoverImageFile, setIndexFile, setLofFile, setLotFile, setOPS, setTocFile
Methods inherited from class writer2latex.base.ConverterBase
addDocument, convert, getEmbeddedObject, getImageCv, getMetaData, getTexMathsEquation, getTexMathsEquation, getTexMathsStyle, setGraphicConverter
-
Constructor Details
-
EPUBConverter
public EPUBConverter()
-
-
Method Details
-
convert
Description copied from interface:Converter
Convert a document- Specified by:
convert
in interfaceConverter
- Overrides:
convert
in classConverterBase
- Parameters:
is
- anInputStream
from which to read the source document.sTargetFileName
- the file name to use for the converted document (if the converted document is a compound document consisting consisting of several files, this name will be used for the master document)- Returns:
- a
ConverterResult
containing the converted document - Throws:
IOException
- if some exception occurs while reading the document
-
convert
public ConverterResult convert(Document dom, String sTargetFileName, boolean bDestructive) throws IOException Description copied from interface:Converter
Convert a document- Specified by:
convert
in interfaceConverter
- Overrides:
convert
in classConverterBase
- Parameters:
dom
- a DOM tree representing the document as flat XMLsTargetFileName
- the file name to use for the converted document (if the converted document is a compound document consisting consisting of several files, this name will be used for the master document)bDestructive
- set to true if the converter is allowed to remove contents from the DOM tree (to save memory)- Returns:
- a
ConverterResult
containing the converted document - Throws:
IOException
- if some exception occurs while reading the document
-