In my project, users can write books online and save it as a epub
file. I need to implement a functionality which enables the user to see the preview of epub file. There will be two tabs in preview page. One is for kindlefire
and other is for ipad
. I have saved all the datas (XHTML, css, content, etc
) of epub file in the database. The preview should give the exact look of the book in kindlefire
and ipad
. Is it ok to use normal html and css to generate preview of book ? If there is any other straight forward method for this, please suggest me
I think that you shouldn't aim for the EXACT look on those devices, instead just view the html and css (of course, test it on those devices anyway). People usually don't mind if there are small differences like gaps or paddings somewhere, the main thing is text anyway. Unless, of course, you have difficult tables and media content.