class_docstr: Holds the context for a particular run of the pipeline.
class_docstr_tok: ["Holds","the","context","for","a","particular","run","of","the","pipeline","."]
docstr: Get all ``PageContext`` for this PDF.
docstr_tok: ["Get","all","``","PageContext","``","for","this","PDF","."]
code: def get_page_contexts(self) -> Iterator[PageContext]:
      """Get all ``PageContext`` for this PDF."""
      npages = len(self.pdfinfo)
      for n in range(npages):
          yield PageContext(self, n)
  
file_path: OCRmyPDF/src/ocrmypdf/_jobcontext.py
imports: from __future__ import annotations
  import os
  from argparse import Namespace
  from collections.abc import Iterator
  from copy import copy
  from pathlib import Path
  from pluggy import PluginManager
  from ocrmypdf.pdfinfo import PdfInfo
  from ocrmypdf.pdfinfo.info import PageInfo
label_desc: Use image node_id 3 for calling the PdfContext obj's underlying member method code with example usage: obj.get_page_contexts() without return types