Signing All Pages

Hi All !

Is there any way to replicate a signature to all pages of a document in a snap?

My routine has a lot of lines since I custom set images, font, colors and so forth and I'm trying to avoid a loop using:
For x = 1 to loadedDocument.Pages
Next

Do we have a solution to this?

Thank you!






3 Replies

SL Sowmiya Loganathan Syncfusion Team May 27, 2020 01:49 PM UTC

Hi David,  
  
Thank you for contacting Syncfusion support.   
 
We have analyzed your requirement and we did not get the exact requirement of yours. So we have provided both the response and please find the details from below,  
 
If your requirement is to add digital signature in all pages of PDF document  
While adding the multiple signature in PDF document at a time, it will invalidate the existing one. So we can achieve this by using below steps,   
  
Adding one signature in first page -> Save the document 
Adding another signature in second page-> save the document 
  
Please refer the below documentation to apply one or more signature in PDF document,   
 
If your requirement is to add signature image in all pages of PDF document  
We can able to add image in all pages of PDF document. Please refer the below code snippet,  
 
//Create a new PDF document 
PdfDocument doc = new PdfDocument(); 
 
for (int i = 0; i < 10; i++) 
{ 
    //Add a page to the document 
    PdfPage page = doc.Pages.Add(); 
 
    //Create PDF graphics for the page 
    PdfGraphics graphics = page.Graphics; 
 
    //Load the image from the disk 
    PdfBitmap image = new PdfBitmap("signature.jpg"); 
 
    //Draw the image 
    graphics.DrawImage(image, 0, 0); 
} 
 
 
 
 
Please try the above solution in your end and let us know the result. If it does not satisfies your requirement, please let us know the further details about your requirement it will helpful for us to provide the precise solution on this.  
 
Regards,  
Sowmiya Loganathan 



DA DavidBS May 27, 2020 04:03 PM UTC

Hi Sowmiya,

Thanks for this one more help to me.

Yes, I had exactly though about these procedures... Can I suggest a kind of command of function to make it at a snap in the future?

I had a commercial contract here where the other part had asked to sign all pages as an evidence I had read and agreeded with them.

Thanks again!



PV Prakash Viswanathan Syncfusion Team May 28, 2020 12:46 PM UTC

Hi David, 

Thank you for your update. 

If your requirement is different from our understanding in the last update, kindly explain your requirement elaborately, so that we can provide a better solution at earliest. 

Regards, 
Prakash V 


Loader.
Up arrow icon