file_to_markdown_converter 1.0.0
file_to_markdown_converter: ^1.0.0 copied to clipboard
A Flutter library for converting CSV, XLS, and PDF files to Markdown format.
file_to_markdown_converter #
A Dart/Flutter package to convert PDF, CSV, and Excel files, as well as images (via OCR), to Markdown format.
Features #
- Convert PDF, CSV, and XLS/XLSX files to Markdown tables or text.
- Convert images (JPG, PNG, etc.) to Markdown using OCR, ideal for digitizing receipts or cash payment slips.
- Ready for integration in Flutter apps.
Installation #
Add to your pubspec.yaml:
dependencies: file_to_markdown_converter: path: ../file_to_markdown_converter
Usage #
import 'package:file_to_markdown_converter/file_to_markdown_converter.dart'; import 'dart:io';
// For file-based conversion final result = await FileToMarkdownConverter.convertFile('example.pdf'); if (result.success) { print(result.markdown); }
// For image OCR (from camera or gallery) final imageFile = File('path_to_image.jpg'); final ocrResult = await OcrToMarkdownConverter.convertImageToMarkdown(imageFile); if (ocrResult.success) { print(ocrResult.markdown); }
License #
See LICENSE