dart_pdf
dart_pdf copied to clipboard
How to add signature image at the bottom right corner of last pdf document.
Let's assume, We dynamically create pdf pages which can be 1 to 9 pages. Now how do we add signature at the last bottom-right corner of last page?
I dont have the exact solution : 1 )you can make a list and divide in a 2 part => then [ dynamicPart, signaturePart ] in this option locate the signature position can be hard 2 ) there is a footer option but i think its calling every page's bottom :
pdf.addPage(
// Page Ayarları
pw.MultiPage(
maxPages: 100,
theme: pw.ThemeData.withFont(
base: await PdfGoogleFonts.robotoRegular(),
bold: await PdfGoogleFonts.robotoRegular(),
icons: await PdfGoogleFonts.robotoRegular(),
),
header: _buildHeader,
footer: _buildFooter, // here
pageFormat: format,
orientation: pw.PageOrientation.portrait,
crossAxisAlignment: pw.CrossAxisAlignment.start,
build: (context) {
return FinalPDF;
}),
);