docx_to_text 1.0.1 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);
}