PdfDocumentParserBase.fromBytes constructor

PdfDocumentParserBase.fromBytes(
  1. Uint8List bytes, {
  2. bool enableCache = true,
  3. int cacheBlockSize = 256 * 1024,
  4. int cacheMaxBlocks = 32,
})

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);