Write a EPUB creator problems
Posted: Sat Jan 17, 2026 2:42 pm
Hi,
I want to use PureBasic to write a simple EPUB creator that I can convert some text files to a EPUB and read on my Ereader.
A EPUB is basically a zip file, however, the order of files are important. One particlar uncompressed file must be the first file in the ZIP, following by other compressed folders.
My original idea is to create a ZIP file (use createPack()) with only one uncompressed file, then I reopen this ZIP file(use OpenPack()), add other compressed folders.
However, AddPackDirectory () can only follow a CreatePack() and I also do not know how to change the compression ratio of other folders..
Any suggestions are appreciated.
Thanks.
Allen
I want to use PureBasic to write a simple EPUB creator that I can convert some text files to a EPUB and read on my Ereader.
A EPUB is basically a zip file, however, the order of files are important. One particlar uncompressed file must be the first file in the ZIP, following by other compressed folders.
My original idea is to create a ZIP file (use createPack()) with only one uncompressed file, then I reopen this ZIP file(use OpenPack()), add other compressed folders.
However, AddPackDirectory () can only follow a CreatePack() and I also do not know how to change the compression ratio of other folders..
Any suggestions are appreciated.
Thanks.
Allen