Hi Gell,
We recommend
you use the PdfLayoutFormat of pagination bounds when draw the grid in PDF
document by using following code snippet,
|
//Create
a PdfLayoutFormat for pagination
PdfLayoutFormat format = PdfLayoutFormat(
breakType: PdfLayoutBreakType.fitColumnsToPage,
layoutType: PdfLayoutType.paginate);
format.paginateBounds =
Rect.fromLTWH(0, 30, page.getClientSize().width, 500);
//Draw the grid in PDF document page
grid.draw(
page: page,
bounds: Rect.fromLTWH(0,
30, page.getClientSize().width, 500),
format: format);
|
Note: Rect.fromLTWH(left, top, width, height)
using these values, you can achieve your requirement.
Kindly refer
to the following link to get more details,
https://help.syncfusion.com/flutter/pdf/working-with-tables#pagination-in-pdfgrid
Regards,
Surya V