convertHtml static method

  1. @Deprecated('Please use another method to create your PDF document')
Future<Uint8List> convertHtml({
  1. required String html,
  2. String? baseUrl,
  3. 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,
  );
}