Go to file
bokuweb 22aee045a0
refactor: rename macros (#25)
* refactor: rename macros

* fix: some clippy error

* fix: lint error

* chore: run lint in actions
2020-01-24 17:57:14 +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 refactor: rename macros (#25) 2020-01-24 17:57:14 +09:00
docx-wasm refactor: rename macros (#25) 2020-01-24 17:57:14 +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 Prepare for wasm (#2) 2019-12-11 14:12:22 +09:00
Cargo.toml clean wasm dir 2019-11-07 18:11:32 +09:00
README.md Update README.md 2020-01-18 00:20:46 +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

Example

use docx_core::*;

pub fn hello() -> Result<(), DocxError> {
  let path = std::path::Path::new("./tests/output/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