writeDebug method

void writeDebug(
  1. PdfStream os
)
inherited

Implementation

void writeDebug(PdfStream os) {
  assert(() {
    if (_offset != null) {
      final o = PdfStream();
      _properties.forEach(o.putComment);
      final b = o.output();
      os.setBytes(
        _offset!,
        b.sublist(0, math.min(size + 2, b.lengthInBytes - 1)),
      );
    }
    return true;
  }());
}