public static class Convert.SVGOutputOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_op_off |
static int |
e_op_on |
static int |
e_op_pdfx_on |
Constructor and Description |
---|
SVGOutputOptions()
Creates an SVGOutputOptions object with default settings
|
Modifier and Type | Method and Description |
---|---|
void |
setAnnots(boolean annots)
Control generation of form fields and annotations in SVG.
|
void |
setCompress(boolean svgz)
Compress output SVG files using SVGZ.
|
void |
setCreateXmlWrapper(boolean xml)
Create a XML document that contains metadata of the SVG document created.
|
void |
setDtd(boolean dtd)
Set whether the DTD declaration is included in the SVG files.
|
void |
setEmbedFonts(boolean embed_fonts)
Sets whether to embed fonts into each SVG page file, or to have them shared.
|
void |
setEmbedImages(boolean embed_images)
Sets whether to embed all images
|
void |
setFlattenContent(int flatten)
Flatten images and paths into a single background image overlaid with
vector text.
|
void |
setFlattenThreshold(int threshold)
Used to control how precise or relaxed text flattening is.
|
void |
setIndividualCharPlacement(boolean individual_char_placement)
Some viewers do not support the default text positioning correctly.
|
void |
setNoFonts(boolean no_fonts)
Sets whether to disable conversion of font data to SVG
|
void |
setNoUnicode(boolean no_unicode)
Sets whether to disable mapping of text to public Unicode region.
|
void |
setOutputThumbnails(boolean include_thumbs)
Sets whether per page thumbnails should be included in the file.
|
void |
setOverprint(int mode)
Enable or disable support for overprint and overprint simulation.
|
void |
setRemoveCharPlacement(boolean remove_char_placement)
Sets whether to disable the output of character positions.
|
void |
setSvgFonts(boolean svg_fonts)
Sets whether to convert all fonts to SVG or not.
|
void |
setThumbnailSize(int size)
The maximum dimension of thumbnails.
|
public static final int e_op_off
public static final int e_op_on
public static final int e_op_pdfx_on
public SVGOutputOptions()
public void setEmbedImages(boolean embed_images) throws PDFNetException
embed_images
- if true, images will be embededPDFNetException
public void setNoFonts(boolean no_fonts) throws PDFNetException
no_fonts
- if true, font data conversion is disabledPDFNetException
public void setSvgFonts(boolean svg_fonts) throws PDFNetException
svg_fonts
- if true, fonts are converted to SVG. Otherwise they are converted to OpenType.
Default is false.PDFNetException
public void setEmbedFonts(boolean embed_fonts) throws PDFNetException
embed_fonts
- if true, fonts are injected into each SVG page.
Otherwise they are created as separate files that are shared between SVG pages.
Default is false.PDFNetException
public void setNoUnicode(boolean no_unicode) throws PDFNetException
no_unicode
- if true, mapping of text to public Unicode region is disabledPDFNetException
public void setIndividualCharPlacement(boolean individual_char_placement) throws PDFNetException
individual_char_placement
- if true, text will be positioned correctlyPDFNetException
public void setRemoveCharPlacement(boolean remove_char_placement) throws PDFNetException
remove_char_placement
- if true, the output of character positions is disabledPDFNetException
public void setFlattenContent(int flatten) throws PDFNetException
flatten
- select which flattening mode to use.PDFNetException
public void setFlattenThreshold(int threshold) throws PDFNetException
threshold
- the threshold setting to use.PDFNetException
public void setCompress(boolean svgz) throws PDFNetException
svgz
- if true, SVG files are written in compressed format. Default is false.PDFNetException
public void setOutputThumbnails(boolean include_thumbs) throws PDFNetException
include_thumbs
- if true thumbnails will be includedPDFNetException
public void setThumbnailSize(int size) throws PDFNetException
size
- the maximum dimension (width or height) that
thumbnails will have. Default is 400.PDFNetException
public void setCreateXmlWrapper(boolean xml) throws PDFNetException
xml
- if true, XML wrapper is created. Default is true.PDFNetException
public void setDtd(boolean dtd) throws PDFNetException
dtd
- if false, no DTD is added to SVG files. Default is true.PDFNetException
public void setAnnots(boolean annots) throws PDFNetException
annots
- if false, no form fields or annotations are converted. Default is truePDFNetException
public void setOverprint(int mode) throws PDFNetException
mode
- e_op_on: always enabled; e_op_off: always disabled; e_op_pdfx_on: enabled for PDF/X files only.PDFNetException