This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");
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.

Read more technical tips by Aspose.Words
- Homepage Aspose.Words for .NET
- Download Aspose.Words for .NET

Contact Information
Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose - Your File Format Experts
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.94651
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic