Important alert: (current site time 7/16/2013 7:31:56 AM EDT)
 

article

Convert Documents to EPUB, Split Large Docs & Read on iPod

Email
Submitted on: 10/5/2010 4:48:01 PM
By: aspose_seo 
Level: Intermediate
User Rating: Unrated
Compatibility: C#
Views: 3991
 
     The below technical tip shows how to use Aspose.Words for .NET to easily convert any document to EPUB, Split large documents into small parts and read it on iPod.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				Below is the Code for converting a document into EPUB.
Document doc = new Document(@"E:\MyDoc26.doc");
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 
- 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/
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.9465l


Other 16 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.