Install
openclaw skills install @yasmineliu/book-pdf-to-structured-json把整本 PDF 重建为可审计、可上传验证的 JSON/TXT 电子版
openclaw skills install @yasmineliu/book-pdf-to-structured-jsonProduce a traceable electronic edition whose hierarchy comes from the printed table of contents and whose remote copy can be proven identical to the reviewed local JSON.
logical_page/source_page and boolean structural_only; absence is not equivalent to null or false.Run one source through the complete local pipeline with:
python3 scripts/convert_book.py SOURCE \
--output-dir VERSIONED_OUTPUT_DIR \
--book-id STABLE_BOOK_ID \
--title EXACT_TITLE
The command always writes a canonical JSON draft when extraction and TOC reconstruction succeed. It exits 0 only for a validated final bundle, 3 when JSON was produced but TOC/OCR review remains, and 2 for extraction or configuration failure. A reviewed --toc-json and --review-ledger can be supplied on the same entry point; reviewed corrections are applied to the named node before derivatives and validation are rebuilt.
Automatic TOC parsing is a draft path unless --accept-auto-toc --reviewer NAME records a completed printed-page review. Scanned-PDF OCR remains a draft unless --accept-ocr --reviewer NAME records rendered-page review. Never describe an exit-3 JSON as publication-grade final.
convert_book.py for each text PDF, scanned PDF, DOCX, or TXT source._work/pages evidence for review.corrected, accepted, or false_positive plus reviewer identity.Do not call the work complete unless: