"""
PDF 文档处理模块 - 简化版（支持 OCR）

基于严格正则匹配的章节提取：
- 章标题：第[一二三四五六七八九十百]+章
- 节标题：[一二三四五六七八九十百]+、

特点：
- 本地提取：仅 PyMuPDF
- OCR 模式：RapidLayout 检测表格页 + GLM-OCR/MinerU
- 自动跳过目录页
- 章节规范性检查
"""

from .adapter import PdfWorkerConfig, build_pdf_facade, extract_and_split
from .fulltext_extractor import PdfFullTextExtractor
from .hybrid_extractor import HybridFullTextExtractor
from .ocr_enhanced_extractor import OcrEnhancedExtractor
from .json_writer import PdfJsonResultWriter
from .text_splitter import PdfTextSplitter, ChapterValidationResult
from .toc_extractor import PdfTOCExtractor

__all__ = [
    "PdfTOCExtractor",
    "PdfFullTextExtractor",
    "HybridFullTextExtractor",
    "OcrEnhancedExtractor",
    "PdfTextSplitter",
    "PdfJsonResultWriter",
    "PdfWorkerConfig",
    "build_pdf_facade",
    "extract_and_split",
    "ChapterValidationResult",
]
