docx_to_text 1.0.0 copy "docx_to_text: ^1.0.0" to clipboard
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);
}
23
likes
130
points
2.37k
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package to convert docx files to text.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

archive, xml

More

Packages that depend on docx_to_text