"""
🎯 WOT-PDF - Comprehensive PDF Generation v1.2.5
============================================

Professional PDF generation with Comprehensive Book Generation v1.2.5:
- Enhanced ReportLab v3.0: Performance leader for business documents ⚡  
- Typst CLI: Quality leader for academic documents 🎨
- Production Builder: Enterprise-grade processing pipeline 🚀
- Intelligent routing: Automatic engine selection

NEW in v1.2.5:
- ✅ Professional Code Highlighting with Typst native syntax
- ✅ Internet Image Download with hash-based caching
- ✅ CLI Tool Auto-Detection & Installation (graceful fallback)
- ✅ Enhanced Table Processing with advanced captions
- ✅ Production Builder with sub-60ms build performance
- ✅ Cross-reference system (@tbl:label, @fig:label)
- ✅ Professional styling with #block() and #raw() Typst syntax

PREVIOUS v1.2.0 Features:
- ✅ Advanced Table Processing with captions and cross-references
- ✅ Production Builder with hash-based caching  
- ✅ Caption positioning (top/bottom)
- ✅ Enhanced emoji support in tables (🔧⚡📊✅)
- ✅ Professional template integration
- ✅ Comprehensive table-of-contents generation

Features:
- 📚 Professional document generation from markdown
- 🎨 10 professional templates
- ⚡ Production Builder with enterprise-grade performance
- 🔧 Rich CLI interface with auto-installation
- 📊 Professional output with advanced code highlighting
- 🌐 Internet image processing with intelligent caching

Quick Start:
    >>> from wot_pdf import PDFGenerator, generate_book
    >>> generator = PDFGenerator()
    >>> result = generator.generate("doc.md", "output.pdf")
    >>> 
    >>> # Book generation
    >>> result = generate_book("./docs/", "book.pdf", template="technical")
"""

__version__ = "1.2.5"
__author__ = "Work Organizing Tools Team"
__email__ = "info@wot-tools.com"
__license__ = "MIT"

# Core API exports
from .core.generator import PDFGenerator
from .api.main_api import generate_pdf, generate_book, list_templates

def get_info():
    """Get package information"""
    return {
        "name": "WOT-PDF",
        "version": __version__,
        "author": __author__,
        "license": __license__,
        "engines": ["Typst", "ReportLab"],
        "templates": ["Academic", "Technical", "Corporate", "Educational", "Minimal"]
    }

# CLI entry point
from .cli import main as cli_main
from .core.generator import PDFGenerator
from .core.book_generator import BookGenerator
from .core.template_manager import TemplateManager

# High-level convenience functions
from .api.main_api import generate_pdf, generate_book, list_templates

# Template system
from .templates.template_registry import AVAILABLE_TEMPLATES

# CLI (imported only when needed)
# from .cli import main as cli_main

# All available templates
TEMPLATES = [
    "academic",     # Research papers with citations
    "technical",    # Documentation with code blocks
    "corporate",    # Business reports  
    "educational",  # Learning materials
    "minimal"       # Clean, simple design
]

def get_version():
    """Get wot-pdf version."""
    return __version__

def get_info():
    """Get package information."""
    return {
        "name": "wot-pdf", 
        "version": __version__,
        "author": __author__,
        "license": __license__,
        "templates": TEMPLATES,
        "engines": ["typst", "reportlab"]
    }

# Convenience imports for common usage
__all__ = [
    # Core classes
    "PDFGenerator",
    "BookGenerator", 
    "TemplateManager",
    
    # High-level functions
    "generate_pdf",
    "generate_book",
    "list_templates",
    
    # Constants
    "TEMPLATES",
    "AVAILABLE_TEMPLATES",
    
    # Utilities
    "get_version",
    "get_info",
]
