A toolkit for viewing, converting, and building with Samsung Notes (.sdocx) files.
- SDK: Rust and JavaScript/WebAssembly APIs for parsing and rendering.
- Viewer: Browse, inspect, and export your notes, with files processed locally in your browser.
- CLI: Export SVG, PNG, and PDF from the command line.
- Fidelity: Preserve supported vector content in SVG and PDF, with full Samsung Notes parity as the goal. Current support.
cargo install sdocx-cli # CLI cargo add sdocx # Rust SDK npm install @twango/sdocx # JavaScript / WebAssembly
sdocx-cli note.sdocx # SVG (default) sdocx-cli note.sdocx -o note.png sdocx-cli note.sdocx -o note.pdf --pages "1-3, 5"
let doc = sdocx::parse("note.sdocx")?; let layout = sdocx::layout_document(&doc); println!("{} visible page(s)", layout.pages.len());
import init, { parse } from "@twango/sdocx"; await init(); const doc = parse(new Uint8Array(await file.arrayBuffer())); console.log(doc.pages);