PdfAnnotationCollection.onPage constructor
PdfAnnotationCollection.onPage(
- PdfDocument document,
- int pageIndex
Creates the collection of the page with index pageIndex (zero based).
Implementation
factory PdfAnnotationCollection.onPage(PdfDocument document, int pageIndex) {
final pages = PdfPageContentEditor.distinctPages(document);
if (pageIndex < 0 || pageIndex >= pages.length) {
throw RangeError.index(pageIndex, pages, 'pageIndex');
}
return PdfAnnotationCollection(pages[pageIndex]);
}