rectTopLeft property

PdfTopLeftRect? get rectTopLeft

The /Rect in "top-left" coordinates, as the user sees the page.

Implementation

PdfTopLeftRect? get rectTopLeft {
  final box = rect;
  if (box == null) return null;
  return _collection.transformer.rectToTopLeft(box.toRect());
}
set rectTopLeft (PdfTopLeftRect? value)

Writes the /Rect from "top-left" coordinates.

Implementation

set rectTopLeft(PdfTopLeftRect? value) {
  if (value == null) {
    rect = null;
    return;
  }
  rect = PdfBox.fromRect(_collection.transformer.rectFromTopLeftRect(value));
}