PdfPageViewDecorationBuilder typedef
PdfPageViewDecorationBuilder =
Widget Function(BuildContext context, Size pageSize, PdfPage page, RawImage? pageImage)
Function to build a widget that wraps the page image.
It is often used to decorate the page image with a border or a shadow, to set the page background color, etc.
context
is the build context.
pageSize
is the size of the page.
page
is the page to be displayed.
pageImage
is the page image; it is null if the page is not rendered yet.
The image size may be different from pageSize
because of the screen DPI
or some other reasons.
Implementation
typedef PdfPageViewDecorationBuilder =
Widget Function(BuildContext context, Size pageSize, PdfPage page, RawImage? pageImage);