David PHAM-VAN

Fix printing from pdf document

# 1.0.5
* Fix printing from pdf document
# 1.0.4
* Update example for pdf 1.0.5
* Add Contributing
... ...
... ... @@ -17,6 +17,7 @@
*/
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui';
import 'package:flutter/services.dart';
... ... @@ -33,8 +34,9 @@ class Printing {
if (document != null) bytes = document.save();
final Map<String, dynamic> params = <String, dynamic>{
'doc': bytes,
'doc': new Uint8List.fromList(bytes),
};
await _channel.invokeMethod('printPdf', params);
}
... ... @@ -50,7 +52,7 @@ class Printing {
}
final Map<String, dynamic> params = <String, dynamic>{
'doc': bytes,
'doc': new Uint8List.fromList(bytes),
'x': bounds.left,
'y': bounds.top,
'w': bounds.width,
... ...
... ... @@ -2,7 +2,7 @@ name: printing
author: David PHAM-VAN <dev.nfet.net@gmail.com>
description: Plugin that allows Flutter apps to generate and print documents to android or ios compatible printers
homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
version: 1.0.4
version: 1.0.5
environment:
sdk: ">=1.19.0 <3.0.0"
... ...