Skip to content
pubscout

docx_creator

1.4.0, released 7 weeks ago by alihassan143cool.blogspot.com

Create, read, edit, and convert DOCX files to PDF, HTML, and Markdown in pure Dart.

WASM-ready
$ flutter pub add docx_creator
Source repository

What it does

The library provides a fluent builder API to generate DOCX documents, parse existing DOCX files, and export them to PDF, HTML, or Markdown. It also includes readers for DOCX and PDF and supports embedding images, tables, shapes, and custom fonts.

AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to generate or modify Word documents on any platform without native code
  • You want to export documents to PDF, HTML, or Markdown directly from Dart

Skip it when

  • Exact Word feature parity is required, especially for PDF export gaps
  • You need real‑time collaborative editing of documents

Strengths

  • Pure‑Dart implementation works on all Flutter platforms
  • Comprehensive DOCX features and PDF export with fallback fonts
  • Fluent builder API makes document creation concise

Weaknesses

  • PDF export has some feature gaps compared to DOCX
  • Package size may be large due to font and image handling

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
12
import 'package:docx_creator/docx_creator.dart';

void main(){
  final doc = DocxBuilder()
    .addParagraph('Hello World')
    .addTable([
      ['Header 1','Header 2'],
      ['Cell 1','Cell 2']
    ])
    .build();
  doc.saveAsDocx('example.docx');
  doc.saveAsPdf('example.pdf');
}

Alternatives

Packages that do the same job and could replace docx_creator.

Works with

Packages commonly used together with docx_creator: ones it builds on, ones built on it, and its own family.