Writing to the content.opf
I want to correct errors that sometimes occur in the content.opf file. I can read this file using bk.readotherfile("OEBPS/content.opf"). However, I cannot write to this file using bk.writeotherfile("OEBPS/content.opf", opf2) where opf2 is the updated file to write back to the ePub.
Is it possible to amend the content.opf file without having to unzip the ePub, amend the unzipped file, and then zip it back up again?
Thanks.
|