Quote:
Originally Posted by compurandom
Also, someone mentioned leveraging existing calibre library features that didn't exist when modify epub / quality check were created. I'd be interested in looking at that, is there a specific API reference somewhere that focuses on epub (or pdf) manipulation? If I do dig into this, that would be a good place to start.
|
I think you probably mean me. The calibre container classes, in
calibre.ebooks.oeb.polish.container.py, handle the safe manipulation of epub/azw3 innards and can also be used for kepubs. I think new methods get added as needed. These classes don't handle PDF and I know almost nothing about PDF editing.
I know from personal experience there are calibre source .py files full of utilities regarding covers, TOCs, OPFs and much more. You'll find some of them in the same directory as container.py.
I think there is a logical structure to the way the calibre source is arranged but unfortunately it doesn't always help me zero in on what I'm looking for. I suspect the fault is all mine

A good search tool gets you there in the end.