microsoft_viewer 0.0.5
microsoft_viewer: ^0.0.5 copied to clipboard
A Flutter based package for viewing Microsoft Office documents like docx, pptx, xlsx.
This is a very basic package to view Microsoft Documents like Word, SpreadSheet and Presentations.
Its built for the latest Microsoft files with extensions .docx, .xlsx and .pptx.
Currently its a very basic viewer and more features will be added progressively.
Email to [email protected], in case you are ready to fund the project, contribute further to this project or need some specific customization.
Features #
- Read .docx file and show text, images and tables with minimum formatting.
- Read .xlsx file and show the tables, with no formatting.
- Read .pptx file and show text, background image and diagrams, with no formatting.
Getting started #
Add the package to your project and then pass the bytes of the .docx/.xlsx/.pptx to the Viewer.
Usage #
Below is a simple example.
//for getting data from asset files
ByteData byteData=await rootBundle.load(fileName);
@override
Widget build(BuildContext context) {
return MicrosoftViewer(Uint8List.sublistView(byteData));
}
//for getting data from network
var response = await http.get(Uri.parse(filePath));
@override
Widget build(BuildContext context) {
return MicrosoftViewer(response.bodyBytes);
}
Additional information #
Microsoft office files are created on a proprietary logic and needs a lot of research to understand it.
Hence building this package needs a lot of effort to understand the logic and then convert them into Flutter widgets.
There are many 3rd party SDKs available with complex features but charge heavily for the same.
Most of the Flutter developer need just the simple viewer functionality and this package is built with that requirement.
Any financial support or knowledge sharing or effort sharing will help in building this package faster.