Closed dalu547 closed 1 year ago
I sorry, I am not working on this project right now, so you need resolve this problem by yourself.
Thank you @lgyjg for your update. Posted same issue in https://github.com/syncfusion/flutter-examples/issues lets see if we get any response from syncfusion.
Iam trying add table in existing pdf page, but iam unable to add. (It is adding as new page in pdf document)
below is my code, please help me out in this scenario
final PdfDocument document = PdfDocument(inputBytes: File(_file!.path).readAsBytesSync());
//Create a PdfGrid class PdfGrid grid = PdfGrid();
//Add the columns to the grid grid.columns.add(count: 3);
//Add header to the grid // grid.headers.add(1);
//Add the rows to the grid // PdfGridRow header = grid.headers[0]; // header.cells[0].value = 'Sign'; // header.cells[1].value = 'Sign'; // header.cells[2].value = 'Sign';
//Add rows to grid PdfGridRow row1 = grid.rows.add(); row1.cells[0].value = 'xxxxxxx'; row1.cells[1].value = 'xxxxxxx'; row1.cells[2].value = 'xxxxxxxx';
//Set the grid style grid.style = PdfGridStyle( cellPadding: PdfPaddings(left: 2, right: 3, top: 4, bottom: 5), backgroundBrush: PdfBrushes.white, textBrush: PdfBrushes.black, font: PdfStandardFont(PdfFontFamily.helvetica, 25));
//Draw the grid grid.draw( page: pdfPage, bounds: const Rect.fromLTWH(0, 0, 0, 0));
//Save and dispose the PDF document File(tableFilePath).writeAsBytes(await document.save()); document.dispose();
Iam getting runtime error as "E/flutter (16417): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value"