Create and Print PDF

I want to create and print pdf of body of Page which contains dynamic column and component as children. I am not sure how can I get component in Column
I have written a code to create pdf till column and print PDF
```
Future label(List<int> itemId) async {

// Add your function code here!

final pdf = pw.Document();

pdf.addPage(pw.MultiPage(

pageFormat: PdfPageFormat.a4,

margin: pw.EdgeInsets.all(32),

build: (pw.Context context) {

return [

pw.Column(

children: List.generate(

itemId.length,

(columnIndex) {
//Component Code is supposed to be returned

return ;

},

)),

];

}));

await Printing.layoutPdf(

onLayout: (PdfPageFormat format) async => pdf.save());

}
```

3
2 replies