Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.
EbookSaveOptions()
public EbookSaveOptions()
This parameterless constructor creates a new instance of EbookSaveOptions with ePub output format (can be modified then through
OutputFormat
(#getOutputFormat.getOutputFormat/#setOutputFormat(EBookFormats).setOutputFormat(EBookFormats)) property)
EbookSaveOptions(EBookFormats outputFormat)
public EbookSaveOptions(EBookFormats outputFormat)
Creates a new instance of EbookSaveOptions with specified mandatory e-Book output format, while all other parameters are default
andatory output format, in which the e-Book should be saved
getSplitHeadingLevel()
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
Heading 1
,
Heading 2
,
Heading 3
etc. styles up to the specified heading level.
By default, only
Heading 1
and
Heading 2
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.
Returns:
int
setSplitHeadingLevel(int value)
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
Heading 1
,
Heading 2
,
Heading 3
etc. styles up to the specified heading level.
By default, only
Heading 1
and
Heading 2
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.
Parameters:
Parameter
Type
Description
value
int
getExportDocumentProperties()
public final boolean getExportDocumentProperties()
Specifies whether to export built-in and custom document properties in resultant file.
Default value is
false
.
Returns:
boolean
setExportDocumentProperties(boolean value)
public final void setExportDocumentProperties(boolean value)
Specifies whether to export built-in and custom document properties in resultant file.
Default value is
false
.
Parameters:
Parameter
Type
Description
value
boolean
getOutputFormat()
public final EBookFormats getOutputFormat()
Specifies the format of the resultant e-Book file: IDPF ePub, MOBI, or AZW3.