buildInvoice method
Implementation
Future<Uint8List> buildInvoice(BuildContext context, Invoice invoice, PdfPageFormat pageFormat) async {
try {
final options = _createDocumentOptions(context, invoice);
return await _documentInvoice.buildPDF(pageFormat, options);
} catch (err) {
throw 'buildInvoice: ${err.toString()}';
}
}