Skip to content
twangodevPublic

About

View, convert, and build with Samsung Notes (.sdocx) files.

Topics

Resources

Stars

32 stars

Watchers

0 watching

Forks

Repository files navigation

sdocx

CI crates.io (sdocx) npm docs.rs Ask DeepWiki License

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.

Install

cargo install sdocx-cli      # CLI
cargo add sdocx              # Rust SDK
npm install @twango/sdocx    # JavaScript / WebAssembly

CLI

sdocx-cli note.sdocx                      # SVG (default)
sdocx-cli note.sdocx -o note.png
sdocx-cli note.sdocx -o note.pdf --pages "1-3, 5"

Rust

let doc = sdocx::parse("note.sdocx")?;
let layout = sdocx::layout_document(&doc);
println!("{} visible page(s)", layout.pages.len());

JavaScript

import init, { parse } from "@twango/sdocx";

await init();
const doc = parse(new Uint8Array(await file.arrayBuffer()));
console.log(doc.pages);

About

View, convert, and build with Samsung Notes (.sdocx) files.

Topics

Resources

Stars

32 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages