public interface XHTMLImporter
Modifier and Type | Method and Description |
---|---|
List<Object> |
convert(File file,
String baseUrl)
Convert the well formed XHTML contained in file to a list of WML objects.
|
List<Object> |
convert(InputSource is,
String baseUrl)
Convert the well formed XHTML from the specified SAX InputSource
|
List<Object> |
convert(InputStream is,
String baseUrl) |
List<Object> |
convert(Node node,
String baseUrl) |
List<Object> |
convert(Reader reader,
String baseUrl) |
List<Object> |
convert(Source source,
String baseUrl) |
List<Object> |
convert(String content,
String baseUrl)
Convert the well formed XHTML contained in the string to a list of WML objects.
|
List<Object> |
convert(URL url)
Convert the well formed XHTML found at the specified URI to a list of WML objects.
|
AtomicInteger |
getBookmarkIdLast() |
Map<String,Integer> |
getSequenceCounters()
Get the current numbers of SEQ fields, used in image captions.
|
void |
setHyperlinkStyle(String hyperlinkStyleID)
Configure, how the Importer styles hyperlinks
If hyperlinkStyleId is set to
null , hyperlinks are
styled using just the CSS. |
void |
setMaxWidth(int maxWidth,
String tableStyle)
Set the maximum width available (in twips); useful for scaling bare images
if they are to go in a table cell.
|
void |
setParagraphFormatting(FormattingOption paragraphFormatting) |
void |
setRunFormatting(FormattingOption runFormatting) |
void |
setSequenceCounters(Map<String,Integer> sequenceCounters)
Set the last used numbers of SEQ fields, used in image captions.
|
void |
setTableFormatting(FormattingOption tableFormatting) |
void setHyperlinkStyle(String hyperlinkStyleID)
null
, hyperlinks are
styled using just the CSS. This is the default behavior.
If hyperlinkStyleId is set to "someWordHyperlinkStyleName"
,
that style is used. The default Word hyperlink style name is "Hyperlink".
It is currently your responsibility to define that style in your
styles definition part.hyperlinkStyleID
- The style to use for hyperlinks (eg Hyperlink)void setRunFormatting(FormattingOption runFormatting)
void setParagraphFormatting(FormattingOption paragraphFormatting)
void setTableFormatting(FormattingOption tableFormatting)
List<Object> convert(File file, String baseUrl) throws Docx4JException
file
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(InputSource is, String baseUrl) throws Docx4JException
is
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(InputStream is, String baseUrl) throws Docx4JException
is
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(Node node, String baseUrl) throws Docx4JException
node
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(Reader reader, String baseUrl) throws Docx4JException
reader
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(Source source, String baseUrl) throws Docx4JException
source
- baseUrl
- wordMLPackage
- IOException
Docx4JException
List<Object> convert(URL url) throws Docx4JException
url
- wordMLPackage
- Docx4JException
List<Object> convert(String content, String baseUrl) throws Docx4JException
content
- baseUrl
- wordMLPackage
- Docx4JException
Map<String,Integer> getSequenceCounters()
sequenceCounters
- void setSequenceCounters(Map<String,Integer> sequenceCounters)
sequenceCounters
- AtomicInteger getBookmarkIdLast()
void setMaxWidth(int maxWidth, String tableStyle)
maxWidth
- tableStyle
- - can be nullCopyright © 2007-2019. All Rights Reserved.