libre_doc_converter 0.1.1 copy "libre_doc_converter: ^0.1.1" to clipboard
libre_doc_converter: ^0.1.1 copied to clipboard

A Dart/Flutter library for converting documents using libreoffice.

LibreDocConverter #

A Dart/Flutter library for converting documents using libreoffice.

Features #

Convert from .doc, .docx, .ppt, .pptx, .xls, .xlsx to .pdf.

Getting started #

  • Windows, Linux or macOS.
  • LibreOffice application.

Usage #

The examples are present in the /example folder.

Example: Document to pdf #

import 'dart:io';
import 'package:libre_doc_converter/libre_doc_converter.dart';

Future<void> main() async {
  final converter = LibreDocConverter(
    inputFile: File('assets/example_document.docx'),
  );

  try {
    final pdfFile = await converter.toPdf();
    print(pdfFile.path);
  } catch (e) {
    rethrow;
  }
}
import 'dart:io';
import 'package:libre_doc_converter/libre_doc_converter.dart';

Future<void> main() async {
  final converter = LibreDocConverter(
    inputFile: File('assets/example_sheet.xlsx'),
  );

  try {
    final pdfFile = await converter.toPdf();
    print(pdfFile.path);
  } catch (e) {
    rethrow;
  }
}
4
likes
130
pub points
76%
popularity

Publisher

verified publisherjotaon.com.br

A Dart/Flutter library for converting documents using libreoffice.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

path

More

Packages that depend on libre_doc_converter