Convert Documents to EPUB, Split Large Docs & Read on iPod
posted 6 years ago
The below technical tip shows how to use Aspose.Words for .NET to easily convert any document to EPUB , Split large document into small parts and read it on iPod.
Below is the Code for converting a document into EPUB.
Document doc = new Document(@"E:\MyDoc26.doc");
Then upload this document to your iPod, iPhone or iPad and it can display EPUB documents pretty well.
Splitting Document into Parts
Splitting a large document into parts when saving as EPUB, helps to make load and display faster on a mobile device. The document is still a single EPUB file, but it is split into small parts inside.
Below is the code for specifying the document to be split during save
Document doc = new Document(@"X:\Aspose\Aspose.Words\UserDocs\Temp\3.Split.Java\AW.docx");
HtmlSaveOptions opt = new HtmlSaveOptions(SaveFormat.Epub);
opt.DocumentSplitCriteria = DocumentSplitCriteria.HeadingParagraph;
opt.DocumentSplitHeadingLevel = 5;
This process can make a huge difference to the speed of document display in Apple iBooks.