dart_pdf icon indicating copy to clipboard operation
dart_pdf copied to clipboard

How to add signature image at the bottom right corner of last pdf document.

Open jazzbpn opened this issue 11 months ago • 1 comments

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?

jazzbpn avatar Mar 20 '24 15:03 jazzbpn

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;
          }),
    );

bksbora avatar Mar 21 '24 14:03 bksbora