epub
epub copied to clipboard
readFile hangs forever when loading any file
I dont know if im doing something wrong, but when i try to load a file
var EPub = require("epub");
var epub = new EPub('EPUBFILE', '/images/IMG_ID/IMG_FILENAME', '/chapters/');
epub.on("end", function(){
// epub is now usable
epub.getFile("coverstyle", function(error, data, mimeType){
console.log(error);
console.log(data);
});
res.send('done')
});
Nothing works, it hangs forever.
Hi, I have the same issue, it hangs on forever !
Hi again,
You need to call epub.parse()
after opening the file.
@julien-c you've done a great work, too bad the doc is not much clear.