Yes, all it took to fix the file that crashed was to remove the hyperlinks in the text. Then it ran just fine.
As to zipping the files, here is what I do using Linux zip program from the commandline:
cd to the directory created by your macro.
issue the following commands...
zip -X0 ../ebookname.epub mimetype
zip -Xgr ../ebookname.epub META-INF
zip -Xgr ../ebookname.epub OEBPS
that should do it, creating the file "ebookname.epub" in the directory above the working directory. Note that the -X0 (that is -X zero) is needed for zipping the "mimetype" file correctly. It should be 20 bytes long.
Looks like you're doing the file compression with java, so I don't know what the corresponding parameters should be.
|