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.
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.
- syncfusion_flutter_pdfviewer
Flutter PDF Viewer library to display PDF documents seamlessly and efficiently.
86Compare - flutter_html_to_pdf_plus
Flutter plugin for generating PDF documents from HTML code templates.
65Compare - flutter_pdfview
A Flutter plugin providing native PDFView widgets on Android and iOS.
76Compare - htmltopdfwidgets
Converts HTML and Markdown content into high-quality PDF widgets.
81Compare
Works with
Packages commonly used together with docx_creator: ones it builds on, ones built on it, and its own family.
- archivedocx_creator depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- cryptodocx_creator depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- uuiddocx_creator depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- xmldocx_creator depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- webdocx_creator depends on itLightweight bindings for browser APIs via JS interop
- htmldocx_creator depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- imagedocx_creator depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- equatabledocx_creator depends on itProvides value‑based equality for Dart objects without manual == and hashCode.