openDocumentFromBytes static method

Future<NutrientDocumentInterface> openDocumentFromBytes(
  1. Uint8List bytes, {
  2. String? password,
  3. NutrientController? adapter,
})

Opens a document from in-memory bytes without a viewer (headless).

Like openDocument but for documents that aren't on disk. See openDocument for adapter / ownership semantics.

Implementation

static Future<NutrientDocumentInterface> openDocumentFromBytes(
  Uint8List bytes, {
  String? password,
  NutrientController? adapter,
}) =>
    _headlessHost(adapter).openDocumentFromBytes(bytes, password: password);