prepare method

  1. @override
void prepare()

Prepare the object to be written to the stream

Implementation

@override
void prepare() {
  super.prepare();

  final nums = PdfArray();
  for (final entry in labels.entries) {
    nums.add(PdfNum(entry.key));
    nums.add(entry.value.toDict());
  }

  params['/Nums'] = nums;
}