PdfDocumentParserBase constructor

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

Creates a document loader instance.

Implementation

PdfDocumentParserBase(
  PdfRandomAccessReader reader, {
  bool enableCache = true,
  int cacheBlockSize = 256 * 1024,
  int cacheMaxBlocks = 32,
}) : reader = enableCache
          ? PdfCachedRandomAccessReader(
              reader,
              blockSize: cacheBlockSize,
              maxBlocks: cacheMaxBlocks,
            )
          : reader;