printPdf method

  1. @override
Future<Map<String, dynamic>> printPdf(
  1. String pdfPath, {
  2. int width = 70,
  3. int height = 50,
  4. int dpi = 300,
  5. int density = 11,
  6. int speed = 2,
  7. int paperType = 1,
  8. int instruction = 1,
})
override

Implementation

@override
Future<Map<String, dynamic>> printPdf(
  String pdfPath, {
  int width = 70,
  int height = 50,
  int dpi = 300,
  int density = 11,
  int speed = 2,
  int paperType = 1,
  int instruction = 1,
}) async {
  final result = await methodChannel.invokeMethod('printPdf', {
    'pdfPath': pdfPath,
    'width': width,
    'height': height,
    'dpi': dpi,
    'density': density,
    'speed': speed,
    'paperType': paperType,
    'instruction': instruction,
  });
  return Map<String, dynamic>.from(result as Map);
}