readStreamData method

Uint8List? readStreamData(
  1. PdfIndirectRef ref
)

Reads the raw stream bytes of an indirect object. Useful for image extraction (returns the stream with filters undecoded).

Implementation

Uint8List? readStreamData(PdfIndirectRef ref) {
  final obj = _getObject(ref.obj);
  return obj?.streamData;
}