Go to file
bokuweb f90ed43edb
Update README.md
2020-01-24 19:46:01 +09:00
.github refactor: rename macros (#25) 2020-01-24 17:57:14 +09:00
.vscode feat: Add table property 2019-11-12 18:02:50 +09:00
docs chore: update docs (#10) 2019-12-14 10:15:36 +09:00
docx-core Rename (#27) 2020-01-24 19:44:43 +09:00
docx-wasm Rename (#27) 2020-01-24 19:44:43 +09:00
fixtures Support hidden (#8) 2019-12-14 00:47:47 +09:00
output feat: Support alignment 2019-11-11 13:05:07 +09:00
vrt spec: Add VRT foundation 2019-11-12 13:33:45 +09:00
.gitignore chore: allow pkg for now 2019-12-11 14:27:31 +09:00
Cargo.lock Rename (#27) 2020-01-24 19:44:43 +09:00
Cargo.toml clean wasm dir 2019-11-07 18:11:32 +09:00
README.md Update README.md 2020-01-24 19:46:01 +09:00
logo.png Add files via upload 2020-01-24 15:21:07 +09:00
makefile refactor: rename macros (#25) 2020-01-24 17:57:14 +09:00

README.md

A .docx file generater with Rust/WebAssembly.


GitHub Actions Status

Installation

[dependencies]
docx-rs = "0.2.0"

Example

use docx_rs::*;

pub fn hello() -> Result<(), DocxError> {
    let path = std::path::Path::new("./hello.docx");
    let file = std::fs::File::create(&path).unwrap();
    Docx::new()
        .add_paragraph(Paragraph::new().add_run(Run::new().add_text("Hello")))
        .build()
        .pack(file)?;
    Ok(())
}

More examples

Features

  • Paragraph
  • Alignment
  • Indent
  • Numbering
  • Run
  • Bold
  • Size
  • Color
  • Highlight
  • Underline
  • vanish
  • Italic
  • Break
  • Header
  • Footer
  • Comment
  • Image
  • Style
  • Table
  • HIstory
  • Table of contents
  • Section