addPageNumbers method

Future<bool> addPageNumbers({
  1. double fontSize = 10,
  2. int startAt = 1,
  3. bool rightAligned = true,
})

Implementation

Future<bool> addPageNumbers({double fontSize = 10, int startAt = 1, bool rightAligned = true}) async {
  attach();
  final UPdfEdit? edit = _edit;
  if (edit == null) return false;
  await edit.addPageNumbers(fontSize: fontSize, startAt: startAt, rightAligned: rightAligned);
  viewer.invalidateAll();
  notifyListeners();
  return true;
}