GitXplorerGitXplorer
s

spreadsheet_decoder

public
55 stars
21 forks
19 issues

Commits

List of commits on branch master.
Verified
81e28b76d64845975f137109c32c9c2193797489

Merge pull request #44 from okaxaki/feature/exclude-phonetic

ssestegra committed 2 years ago
Unverified
4d3702ff8ca5a02cd26684f082c59c4f4a406162

Exclude phonetic information from cell value.

ookaxaki committed 2 years ago
Verified
601bdb6862a0361628d71310ab2fd1f3a8be5141

2.1.1

ssestegra committed 2 years ago
Verified
5b0917d1cf3febd443fcdcc2e2b05b25719b39b5

Merge pull request #39 from flutter-painter/master

ssestegra committed 2 years ago
Unverified
95a9ab5ad33895ba2aa39f06219cdbb7ad0a6c45

archive: ^3.1.11

fflutter-painter committed 2 years ago
Verified
12f828f0490321bb5686d642cb1d97ab34450814

2.1.0

ssestegra committed 3 years ago

README

The README file for this repository.

Spreadsheet Decoder

Build Status Coverage Status Pub version

Spreadsheet Decoder is a library for decoding and updating spreadsheets for ODS and XLSX files.

Usage

On server-side

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

main() {
  var bytes = File.fromUri(fullUri).readAsBytesSync();
  var decoder = SpreadsheetDecoder.decodeBytes(bytes);
  var table = decoder.tables['Sheet1'];
  var values = table.rows[0];
  ...
  decoder.updateCell('Sheet1', 0, 0, 1337);
  File(join(fullUri).writeAsBytesSync(decoder.encode());
  ...
}

On client-side

import 'dart:html';
import 'package:spreadsheet_decoder/spreadsheet_decoder.dart';

main() {
  var reader = FileReader();
  reader.onLoadEnd.listen((event) {
    var decoder = SpreadsheetDecoder.decodeBytes(reader.result);
    var table = decoder.tables['Sheet1'];
    var values = table.rows[0];
    ...
    decoder.updateCell('Sheet1', 0, 0, 1337);
    var bytes = decoder.encode();
    ...
  });
}

Features not yet supported

This implementation doesn't support following features:

  • annotations
  • spanned rows
  • spanned columns
  • hidden rows (visible in resulting tables)
  • hidden columns (visible in resulting tables)

For XLSX format, this implementation only supports native Excel format for date, time and boolean type conversion. In other words, custom format for date, time, boolean aren't supported and then file exported from LibreOffice as well.

License

The MIT License, see LICENSE.