docx_to_text 1.0.0
docx_to_text: ^1.0.0 copied to clipboard
A Dart package to convert docx files to text.
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);
}