markContentBegin method

void markContentBegin(
  1. PdfName tag
)

Implementation

void markContentBegin(PdfName tag) {
  var o = 0;
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      o = _buf.offset;
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());

  tag.output(_page, _buf);
  _buf.putString(' BMC ');

  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * math.max(0, _commentIndent - _buf.offset + o));
      _buf.putComment('markContentBegin($tag)');
    }
    return true;
  }());
}