I am using Aspose.Words to create text documents which I then export as PDF and ePUB files. I use the following configuration to create the epub file:
var saveOptions = new HtmlSaveOptions(SaveFormat.Epub);
saveOptions.DocumentSplitCriteria = DocumentSplitCriteria.HeadingParagraph;
saveOptions.DocumentSplitHeadingLevel = 1;
saveOptions.EpubNavigationMapLevel = 1;
saveOptions.UpdateCreatedTimeProperty = true;
saveOptions.UpdateLastSavedTimeProperty = true;
What I want to achieve is that the nav map in the epub file should contain only the h1 headings of my document. But besides the h1 headings, it also contains an additional entry at the very top which points the the first page of the epub file. On this page, I render some text which is based on the Normal style, but no heading-formatted text. How can I control wheather or not this item is added to the nav map?
The exported nav map looks like this:
<navMap>
<navPoint id="np001" playOrder="1"> <!-- ===> points to the first page with Normal-formatted text -->
<navLabel>
<text>Text from first page</text>
</navLabel>
<content src="[...].html"/>
</navPoint>
<navPoint id="np002" playOrder="2"> <!-- ===> points to the first h1 heading -->
<navLabel>
<text>First Heading</text>
</navLabel>
<content src="[...].html#navPoint_1"/>
</navPoint>
...
</navMap>
I want to omit the np001
navPoint.