Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug epub?

Tags:

epub

I've written an ePub generator by using ZipArchive in .NET and looking at the spec (in Wikipedia) & a example.

It doesn't work! But I only get a generic error so I'm unable to fix anything from here.

Where could I go to upload my ePub and be told what is wrong with it? Or is there a tool that is better for it? I'm currently using Adobe ePub reader...

like image 258
Vincent-Philippe Lauzon Avatar asked May 25 '26 02:05

Vincent-Philippe Lauzon


2 Answers

I realize this is an old question, but in case others come across this I wanted to contribute. The IDPF which is responsible for the ePub standard has a tool for checking ePubs called epubcheck. It can be found at https://github.com/IDPF/epubcheck.

In addition, they have their own online validator that uses epubcheck. It is located at http://validator.idpf.org/

like image 83
mwu Avatar answered May 28 '26 13:05

mwu


There are two basic black box approaches.

First: Generate a file and put it into a validator.

Second: Take a set of in- and output without using your code (other generator, example, do it manual). Then use a file comparison tool (maybe extract zip first).

like image 20
Daniel Avatar answered May 28 '26 14:05

Daniel