public class SVGRenderer extends FormatProducer implements LayoutedPagesConsumer, java.io.Serializable
FontInfo
.
pageSet
and page
element specified in SVG Print
to separate the different page images from each other. However, these elements are not yet recognized by most browsers or SVG editors.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Modifier | Constructor and Description |
---|---|
protected |
SVGRenderer()
Creates a SVGRenderer object.
|
|
SVGRenderer(FormatHandler handler)
Creates a SVGRenderer object that outputs to the given
handler object.
|
Modifier and Type | Method and Description |
---|---|
void |
setCharsetToEmbed(java.lang.String charsetToEmbed)
Selects a character set for font embedding whose characters will be
embedded (if available in the selected fonts).
|
void |
setEmbedFonts(java.lang.Boolean embedFonts)
Activates font embedding if true, external font
referencing if false.
|
void |
setFromPage(java.lang.Integer fromPage)
Sets the first page to be included in the document.
|
void |
setToPage(java.lang.Integer toPage)
Sets the last page (inclusive) to be included in the document.
|
setHandler
public static final java.lang.String legalCopyright
protected SVGRenderer()
public SVGRenderer(FormatHandler handler)
handler
- A FormatHandlerpublic void setFromPage(java.lang.Integer fromPage)
fromPage
- an integer greater than zero and less than or equal to
toPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setToPage(java.lang.Integer toPage)
toPage
- an integer greater than zero and greater than or equal
to fromPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setEmbedFonts(java.lang.Boolean embedFonts)
true
.embedFonts
- whether fonts are embedded in the
document or external references are usedpublic void setCharsetToEmbed(java.lang.String charsetToEmbed)
"DEFAULT"
.charsetToEmbed
- one of the following values:
Charset.availableCharsets()
)
setEmbedFonts(java.lang.Boolean)