Custom Stamps event annotationAdd is not triggered

Hi,

1. I have a problem, when I add dynamic stamp on pdf, event anntotationAdd is triggered but when I add custom stamp this event is not triggered. On right side in comment list I can see both annotations for dynamic and for custom.

2. Is it possible to save changed pdf over existing one? I'm using docker 'syncfusion/pdfviewer-server' running on server.

3. Is it possible to add date and time on custom stamp like what you have on dynamic stamps? Or is it possible to change text on dynamic stamps, so for example I want on stamp to be 'Bewertet' instead of 'Reviewed'?

Best regards,
Dule

6 Replies 1 reply marked as answer

VS Vasugi Sivajothi Syncfusion Team March 26, 2021 01:05 PM UTC

 
Hi Dusan, 
 
Thanks for contacting Syncfusion support. 
 
Please find the details, 
   
Query   
Details   
1. I have a problem, when I add dynamic stamp on pdf, event anntotationAdd is triggered but when I add custom stamp this event is not triggered. On right side in comment list I can see both annotations for dynamic and for custom.   
   
We were unable to reproduce the reported issue with the provided details. We have shared the sample in which we have tried to reproduce the issue. Please refer to the below sample,   
   
   
Kindly try this and revert to us with a modified sample, and more details about the reported issue if you have any concerns. So, it will be helpful for us to analyze further and provide the details.   
   
   
2. Is it possible to save changed pdf over existing one? I'm using docker 'syncfusion/pdfviewer-server' running on server.   
   
In the Download Web action method, we can get the base64 string of modified documents in the PDF Viewer while downloading the document. So, you can achieve your requirement by using the base64 string of the PDF document based on your convenience.   
   
Please refer to the below code snippet and link,   
   
Code:   
   
public IActionResult Download([FromBody] Dictionary<string, string> jsonObject)   
        {   
            PdfRenderer pdfviewer;   
            if (Startup.isRedisCacheEnable)   
                pdfviewer = new PdfRenderer(_mCache, _dCache, _slidingTime);   
            else   
                pdfviewer = new PdfRenderer(_mCache);   
            string documentBase = pdfviewer.GetDocumentAsBase64(jsonObject);   
            return Content(documentBase);   
        }   
   
   
   
Once change the code snippet based on your requirement to save the existing document, We request you to build the docker image with your changes.   
   
3. Is it possible to add date and time on a custom stamp like what you have on dynamic stamps? Or is it possible to change the text on dynamic stamps, so for example I want on the stamp to be 'Bewertet' instead of 'Reviewed'?   
   
Currently, we don’t have an option to include the Date and Time with a custom stamp, and also can’t change the dynamic stamp text. We will analyze this and update you with the details on this by 31st March 2021.  
 
Regards, 
Vasugi 



UN Unknown March 26, 2021 02:10 PM UTC

Hi Vasugi,

Main difference is that I pre load custom stamps, and when you add stamp from the list of custom stamps the event is not triggered.

BR
Dule


VS Vasugi Sivajothi Syncfusion Team March 29, 2021 10:54 AM UTC

Hi Dusan, 
  
Thank you for the update. 
  
We were able to reproduce the reported issue and suspect this to be a defect. We will analyze further on this and update you with more details on March 31, 2021. 
  
Regards, 
Vasugi 



VS Vasugi Sivajothi Syncfusion Team March 31, 2021 04:57 PM UTC

Hi Dusan,  
 
Please find the details, 
 
Query 
Details 
 Is it possible to add date and time on a custom stamp like what you have on dynamic stamps? Or is it possible to change the text on dynamic stamps, so for example I want on the stamp to be 'Bewertet' instead of 'Reviewed'?    
 
Currently, we are validating on this, we will analyze and update the details on 5 April 2021. 
 
this is example when event is not triggered: https://stackblitz.com/edit/angular-e97bqr-ecmszz?file=app.component.ts

 
Main difference is that I preload custom stamps, and when you add stamp from the list of custom stamps the event is not triggered. 
 
 
We confirmed that the reported issue is a defect, and the fix will be included on 15th April 2021 Weekly NuGet release. 
 
 
 
Regards, 
Vasugi 



VS Vasugi Sivajothi Syncfusion Team April 5, 2021 05:27 PM UTC

Hi Dusan,   
  
Please find the details,  
 
Query 
Details 
 Is it possible to add date and time on a custom stamp like what you have on dynamic stamps? Or is it possible to change the text on dynamic stamps, so for example I want on the stamp to be 'Bewertet' instead of 'Reviewed'?    
We don’t have support for adding the date and time in the custom stamp annotation. However, we can add the image with date and time within the image. In our current implementation we have drawn the dynamic stamp ‘Reviewed' as path content, we will save the path inbuilt in our source for all the stamp annotation and use the same on rendering the stamp on the PDF Viewer control.  We can’t customize the text in the stamp. 
 
this is example when event is not triggered: https://stackblitz.com/edit/angular-e97bqr-ecmszz?file=app.component.ts

  
Main difference is that I preload custom stamps, and when you add stamp from the list of custom stamps the event is not triggered.  
 
 
As we mentioned earlier, the fix for the reported will be included on 15th April 2021 Weekly NuGet release.  
  
 
 
 
Please let us know if you have any concerns about this, 
 
Regards, 
Vasugi 



VS Vasugi Sivajothi Syncfusion Team April 15, 2021 03:21 PM UTC


Marked as answer
Loader.
Up arrow icon