public final class EbookSaveOptions extends Object implements ISaveOptions
| Constructor and Description |
|---|
EbookSaveOptions()
This parameterless constructor creates a new instance of EbookSaveOptions with ePub output format (can be modified then through
OutputFormat(getOutputFormat()/setOutputFormat(EBookFormats)) property) |
EbookSaveOptions(EBookFormats outputFormat)
Creates a new instance of
EbookSaveOptions with specified mandatory e-Book output format, while all other parameters are default |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getExportDocumentProperties()
Specifies whether to export built-in and custom document properties in resultant file.
|
EBookFormats |
getOutputFormat()
Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.
|
int |
getSplitHeadingLevel()
Specifies the maximum level of headings at which to split the e-Book file.
|
void |
setExportDocumentProperties(boolean value)
Specifies whether to export built-in and custom document properties in resultant file.
|
void |
setOutputFormat(EBookFormats value)
Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.
|
void |
setSplitHeadingLevel(int value)
Specifies the maximum level of headings at which to split the e-Book file.
|
public EbookSaveOptions()
This parameterless constructor creates a new instance of EbookSaveOptions with ePub output format (can be modified then through OutputFormat(getOutputFormat()/setOutputFormat(EBookFormats)) property)
public EbookSaveOptions(EBookFormats outputFormat)
Creates a new instance of EbookSaveOptions with specified mandatory e-Book output format, while all other parameters are default
outputFormat - andatory output format, in which the e-Book should be savedpublic final boolean getExportDocumentProperties()
Specifies whether to export built-in and custom document properties in resultant file.
Default value is false.
public final EBookFormats getOutputFormat()
Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.
public final int getSplitHeadingLevel()
Specifies the maximum level of headings at which to split the e-Book file. Default value is 2.
Setting it to 0 will disable splitting, so all content of the e-Book will be incorporarted into a single package inside the resultant file.
When this property is set to a value from 1 to 9, the document will be split at paragraphs formatted using
<b>Heading 1</b>, <b>Heading 2</b> , <b>Heading 3</b> etc. styles up to the specified heading level.
By default, only <b>Heading 1</b> and <b>Heading 2</b> paragraphs cause the document to be split.
Setting this property to zero (or lesser then zero) will cause the document not to be split at heading paragraphs at all.
public final void setExportDocumentProperties(boolean value)
Specifies whether to export built-in and custom document properties in resultant file.
Default value is false.
public final void setOutputFormat(EBookFormats value)
Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.
public final void setSplitHeadingLevel(int value)
Specifies the maximum level of headings at which to split the e-Book file. Default value is 2.
Setting it to 0 will disable splitting, so all content of the e-Book will be incorporarted into a single package inside the resultant file.
When this property is set to a value from 1 to 9, the document will be split at paragraphs formatted using
<b>Heading 1</b>, <b>Heading 2</b> , <b>Heading 3</b> etc. styles up to the specified heading level.
By default, only <b>Heading 1</b> and <b>Heading 2</b> paragraphs cause the document to be split.
Setting this property to zero (or lesser then zero) will cause the document not to be split at heading paragraphs at all.
Copyright © 2026. All rights reserved.