public class SvgTextOutputMode
Example:
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);
Field Summary | ||
---|---|---|
static final int | USE_SVG_FONTS | |
SVG fonts are used to render text. Note, not all browsers support SVG fonts.
|
||
static final int | USE_TARGET_MACHINE_FONTS | |
Fonts installed on the target machine are used to render text.
Note, if some of fonts used in the document are not available on the target machine, document can look differently.
|
||
static final int | USE_PLACED_GLYPHS | |
Text is rendered using curves. Note, text selection will not work if you use this option.
|
public static final int USE_SVG_FONTS
public static final int USE_TARGET_MACHINE_FONTS
public static final int USE_PLACED_GLYPHS