caj2pdf-core is the conversion engine behind the caj2pdf-rust command-line tool and its WebAssembly build. It detects the variant, inspects page count and bookmarks, and converts CAJ, KDH and PDF-in-CAJ files to PDF with bookmarks; HN, C8 and NH support is experimental. It reads input by range and streams output, so memory stays bounded for large theses. It’s written from scratch (not ported from the Python caj2pdf) and is MIT-licensed.
caj2pdf-corecaj2pdf-core is the Rust library behind caj2pdf-rust. How to add it with cargo, convert CNKI CAJ and KDH files to PDF, and inspect format, page count.