forPage static method

PdfParserContentResources? forPage(
  1. PdfDocumentParser parser,
  2. int pageIndex
)

Effective resources of page pageIndex, with inheritance already applied.

Implementation

static PdfParserContentResources? forPage(
    PdfDocumentParser parser, int pageIndex) {
  final page = parser.pageDictAt(pageIndex);
  if (page == null) return null;
  return PdfParserContentResources(
      parser, parser.resolvePageResources(page));
}