output method

int output(
  1. PdfStream s
)
inherited

Implementation

int output(PdfStream s) {
  assert(() {
    if (settings.verbose) {
      setInsertion(s, 160);
      startStopwatch();
    }
    return true;
  }());

  final offset = s.offset;
  s.putString('$objser $objgen obj\n');
  writeContent(s);
  s.putString('endobj\n');

  assert(() {
    if (settings.verbose) {
      stopStopwatch();
      debugFill(
          'Creation time: ${elapsedStopwatch / Duration.microsecondsPerSecond} seconds');
      writeDebug(s);
    }
    return true;
  }());
  return offset;
}