Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jazzbpn opened this issue Mar 20, 2024 · 1 comment
Open
Labels
needs triage support Asking for help writing an application

Comments

@jazzbpn
Copy link

jazzbpn commented Mar 20, 2024

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 jazzbpn added needs triage support Asking for help writing an application labels Mar 20, 2024
@bksbora
Copy link

bksbora commented Mar 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage support Asking for help writing an application
Projects
None yet
Development

No branches or pull requests

2 participants