convertHtml static method
- @Deprecated('Please use another method to create your PDF document')
- required String html,
- String? baseUrl,
- PdfPageFormat format = PdfPageFormat.standard,
Convert an html document to a pdf data
This is not supported on all platforms. Check the result of info to find at runtime if this feature is available or not.
Implementation
@Deprecated('Please use another method to create your PDF document')
static Future<Uint8List> convertHtml({
required String html,
String? baseUrl,
PdfPageFormat format = PdfPageFormat.standard,
}) {
return PrintingPlatform.instance.convertHtml(
html,
baseUrl,
format,
);
}