putText method

void putText(
  1. PdfStream stream,
  2. String text
)

Draw some text

Implementation

void putText(PdfStream stream, String text) {
  try {
    PdfString(latin1.encode(text),
            format: PdfStringFormat.literal, encrypted: false)
        .output(this, stream);
  } catch (_) {
    assert(() {
      print(_cannotDecodeMessage);
      return true;
    }());

    rethrow;
  }
}