by sherazam (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Mon 10th May 2010
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Convert Documents to EPUB, Split Large Docs & Read on iPod
doc.Save(@"E:\MyDoc26.epub");
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;
doc.Save(@"X:\Aspose\Aspose.Words\UserDocs\Temp\3.Split.Java\AW.epub", opt);
This process can make a huge difference to the speed of document display in Apple iBooks.
- More details and images: http://www.aspose.com/community/blogs/aspose.words-product-family/archive/2010/09/15/convert-a-document-to-epub-and-read-on-ipod.aspx
- Homepage of Aspose.Words for .NET: http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
- Download Aspose.Words for .NET: http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx
- Read more technical tips by Aspose.Words for .NET: http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/index.html
Contact Information
Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
http://www.aspose.com/
[email protected]
Phone: 888.277.6734
Fax: 866.810.9465l