PdfDocumentParserBase.fromBytes constructor
PdfDocumentParserBase.fromBytes(})
Creates a document loader instance from bytes.
Implementation
PdfDocumentParserBase.fromBytes(
Uint8List bytes, {
bool enableCache = true,
int cacheBlockSize = 256 * 1024,
int cacheMaxBlocks = 32,
}) : reader = enableCache
? PdfCachedRandomAccessReader(
PdfMemoryRandomAccessReader(bytes),
blockSize: cacheBlockSize,
maxBlocks: cacheMaxBlocks,
)
: PdfMemoryRandomAccessReader(bytes);