docx_to_text 1.0.1 copy "docx_to_text: ^1.0.1" to clipboard
docx_to_text: ^1.0.1 copied to clipboard

A small Dart package for converting docx files (Microsoft Word) to string.

example/docx_to_text_example.dart

import 'dart:io';

import 'package:docx_to_text/docx_to_text.dart';

void main() async {
  final file = File('example/test_sample.docx');

  final bytes = await file.readAsBytes();

  final text = docxToText(bytes, handleNumbering: true);

  print(text);
}
21
likes
160
pub points
91%
popularity

Publisher

unverified uploader

A small Dart package for converting docx files (Microsoft Word) to string.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

archive, xml

More

Packages that depend on docx_to_text