We need a php project classes (symphony prefer) to creation ePub Previews.
Paremeters:
* file
* Options:
* ePub (important!! compatible con ePub2, 3 , fixlayoud, …)
* Init:
* Options:
* null (initial of document)
* Number (number of toc)
* size
* Options
* Number
* TipeSize
* Options
* File porcent
* Tocs
* IncludeCover
* Options:
* null or 0
* 1
*Watermark
* Options:
* null or 0
*1
Proccess:
1. Validation ePub
2. Parsing ePub
1. Include cover if “IncludeCover” =1 and “init” isnot null
2. Proccess of creación file epubPreview on base of parameters
3. management of open tags so as not to corrupt the file
4. Proccess the new toc, base on the content of ePubPreview
1. Unactive links toc (not delete) if not exist in the preview
3. Results
1. Code result (success or error)
2. ePubFilePreview