我正在尝试以 pdf 格式打印配置文件数据。为此,请使用此pdf包。生成pdf的代码如下
doc.addPage(
pw.MultiPage(
// pageTheme: pageTheme,
pageFormat: PdfPageFormat.a4,
build: (pw.Context context) => [
pw.Partitions(
children: [
pw.Partition(
width: screenWidth * 1.3,
child: pw.Container(
height: pageTheme.pageFormat.availableHeight,
child: pw.Padding(
child:pw.Column(children:[//contains multiple items that fits in more than one page]),
),
),
),
pw.Partition(
width: screenWidth * 1.3,
child: pw.Container(
height: pageTheme.pageFormat.availableHeight,
child: pw.Padding(
child:pw.Column(children:[//contains multiple items that fits in more than one page]),
),
),
),
],),),
Run Code Online (Sandbox Code Playgroud)
问题:在上面的脚本中仅生成一个 a4 大小的页面,其余内容被忽略。谢谢