PdfPageBuilder typedef

PdfPageBuilder = Widget Function(BuildContext context, PdfPageTextureBuilder textureBuilder, Size pageSize)

Function definition to build widget tree corresponding to a PDF page.

The function used to decorate the rendered PDF page with certain border and/or shadow and sometimes add page number on it. The second parameter pageSize is the original page size in pt. You can determine the final page size shown in the flutter UI using the size and then pass the size to textureBuilder function on the third parameter, which generates the final Widget.

Implementation

typedef PdfPageBuilder = Widget Function(
    BuildContext context, PdfPageTextureBuilder textureBuilder, Size pageSize);