Skip to content

Implement EPUB export format #60

@frankbria

Description

@frankbria

Problem

User manual mentions EPUB export as a feature but it's not implemented. EPUB is essential for ebook distribution.

Current Behavior

  • Only PDF and DOCX export available
  • No EPUB option in export dialog

Expected Behavior

  • EPUB format available in export dialog
  • EPUB file properly structured for ereaders
  • Metadata included (title, author, ISBN, etc.)
  • Table of contents navigation works in ereaders
  • Images and formatting preserved

Implementation Guidance

  1. Research EPUB 3.0 specification
  2. Use Python library like ebooklib for EPUB generation
  3. Create EPUB service similar to existing export services
  4. Add EPUB to export format options
  5. Test output in multiple ereaders (Kindle, Kobo, Apple Books)

Files Likely Involved

  • backend/app/services/export_service.py - Add EPUB export
  • backend/app/services/epub_service.py - Create EPUB-specific service
  • frontend/src/components/export/ExportDialog.tsx - Add EPUB option
  • backend/requirements.txt - Add ebooklib dependency

Acceptance Criteria

  • EPUB option appears in export dialog
  • EPUB file generates successfully
  • Metadata properly embedded
  • Table of contents works in ereaders
  • Formatting preserved in EPUB
  • EPUB validates against EPUB 3.0 spec
  • Tested in Kindle, Kobo, Apple Books
  • Integration test verifies EPUB structure

Blocked by

Issue #59 (Add professional export templates)

Metadata

Metadata

Assignees

Labels

backendBackend/API workexportExport functionalityfeatureNew feature implementationmediumMedium priority - important but not blocking

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions