rect property

PdfBox? get rect

The /Rect of the annotation, in user space and already normalized.

Implementation

PdfBox? get rect {
  final value = _store.resolveArray(dictionary[PdfNameTokens.rect]);
  return PdfBox.tryFromArray(value)?.normalized();
}
set rect (PdfBox? value)

Writes the /Rect of the annotation, in user space.

Implementation

set rect(PdfBox? value) {
  final target = writableDictionary();
  if (target == null) return;
  if (value == null) {
    target.values.remove(PdfNameTokens.rect);
  } else {
    target[PdfNameTokens.rect] = value.toPdfArray();
  }
}