openDocumentFromBytes static method
Future<NutrientDocumentInterface>
openDocumentFromBytes(
- Uint8List bytes, {
- String? password,
- 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);