public class SvgTextOutputMode
extends java.lang.Object
Examples:
Shows how to mimic the properties of images when converting a .docx document to .svg.
Document doc = new Document(getMyDir() + "Document.docx");
// Configure the SvgSaveOptions object to save with no page borders or selectable text.
SvgSaveOptions options = new SvgSaveOptions();
{
options.setFitToViewPort(true);
options.setShowPageBorder(false);
options.setTextOutputMode(SvgTextOutputMode.USE_PLACED_GLYPHS);
}
doc.save(getArtifactsDir() + "SvgSaveOptions.SaveLikeImage.svg", options);
| Modifier and Type | Field and Description |
|---|---|
static int |
length |
static int |
USE_PLACED_GLYPHS
Text is rendered using curves.
|
static int |
USE_SVG_FONTS
SVG fonts are used to render text.
|
static int |
USE_TARGET_MACHINE_FONTS
Fonts installed on the target machine are used to render text.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String svgTextOutputModeName) |
static java.lang.String |
getName(int svgTextOutputMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int svgTextOutputMode) |
public static int USE_SVG_FONTS
public static int USE_TARGET_MACHINE_FONTS
public static int USE_PLACED_GLYPHS
public static int length