Type Alias MaskRegions

MaskRegions: ((page: number) => ReadonlyArray<RegionMask> | undefined)

Defines a function for masking predefined regions per page, useful for parts of the PDF that change between tests.

Type declaration

    • (page): ReadonlyArray<RegionMask> | undefined
    • Parameters

      • page: number

        The page number of the PDF.

      Returns ReadonlyArray<RegionMask> | undefined

      An array of region masks for the specified page, or undefined if no masks are defined.