remove dependency of EbookFormatter on Doc