Action: gfpdf_gv_directory_render_start
Fires once with the whole result set, before any of the document is drawn.
The seam for work that is cheaper done for every row at once than for each row in turn — a batched lookup, a warmed cache, a single round trip standing in for one per row. Every directory layout funnels through here, so a listener covers all of them; the Static Maps prefetch is the one in the box (\GFPDF\Plugins\PdfForGravityView\Pdf\Maps\StaticMapRenderer::prefetch()).
$resolve_fields is how a listener gets a row's field set — it is per row rather than per render because a Multiple Forms union gives consecutive rows different fields.
Parameters
| Name | Type | Description |
|---|---|---|
| $view | \View | |
| $entries | \Entry_Collection | The rows about to render, in order. |
| $resolve_fields | callable | Entry → position => \GV\Field[]. |
Since
- 2.0
Source
Defined in src/Pdf/DirectoryWriter.php at line 175