@
camelos, there's a completely new viewer being developed, using the calibre-server viewer code base. The current desktop ebook-viewer is on life support only. The server viewer may already do what you want, and if not you could submit an an enhancement request, see ==>>
calibre - Bugs
BR