public static class HTML2PDF.TOCSettings
extends java.lang.Object
Constructor and Description |
---|
TOCSettings()
Default table of contents settings.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
void |
setCaptionText(java.lang.String caption)
Caption text to be used with TOC.
|
void |
setDottedLines(boolean enable)
Use a dotted line when creating TOC?
|
void |
setLevelIndentation(int indentation)
Indentation used for every TOC level...
|
void |
setLinks(boolean enable)
Create links from TOC to actual content?
|
void |
setTextSizeShrink(double shrink)
How much to shrink font for every level, e.g.
|
void |
setXsl(java.lang.String style_sheet)
xsl style sheet used to convert outline XML into a
table of content.
|
public TOCSettings() throws PDFNetException
PDFNetException
public void destroy()
public void setDottedLines(boolean enable) throws PDFNetException
enable
- - Table of contents will use dotted lines.PDFNetException
public void setLinks(boolean enable) throws PDFNetException
enable
- - Entries in table of contents will
link to section in the PDF.PDFNetException
public void setCaptionText(java.lang.String caption) throws PDFNetException
caption
- - Text that will appear with the table of contents.PDFNetException
public void setLevelIndentation(int indentation) throws PDFNetException
indentation
- - How much to indent each level, e.g. "2"PDFNetException
public void setTextSizeShrink(double shrink) throws PDFNetException
shrink
- - Rate at which lower level entries will appear smallerPDFNetException
public void setXsl(java.lang.String style_sheet) throws PDFNetException
style_sheet
- - Path to xsl style sheet to be used to generate
this table of contents.PDFNetException