What problem does it solve? Converting Korean law textbooks and other PDFs into searchable markdown is tedious, especially when files are scanned images without a text layer or contain complex tables. This Skill automates PDF-to-markdown chunk extraction with OCR fallback, table detection, and page-boundary context repair. ## Core Features & Use Cases - Dual extraction paths: Native PDFs are parsed with pypdf/pdfplumber, while scanned PDFs are rendered with pymupdf and recognized with easyocr (Korean/English, CPU mode). - Automatic table detection: pdfplumber table regions and OCR bounding-box layout analysis are converted into markdown tables, with page-boundary sentence merging for broken context. - Batch chunking with index: Splits large PDFs into 30-page markdown chunks and maintains a chunks_index.json with legal keyword extraction (article and case numbers). - Use Case: Extract a 600-page scanned criminal law textbook into markdown chunks, place them under sync/_교재원문/, then run qmd update and qmd embed for RAG indexing. ## Quick Start Extract the PDFs in my textbook folder into markdown chunks using the pdf-ingest skill, falling back to OCR for any scanned volumes.