StampAnnotations

It seems that StampAnnotations are not exported with other annotations via ExportAnnotations().

For my app, I keep the annotations separate from the original PDF document and store the annotations in the database.

Since they are not exported with other annotations, I am keeping track of each StampAnnotation as it is being added.  The problem arises when the StampAnnotation is moved or deleted by the user.  I need to update the database record for this stamp but do not have any good identifier for the stamp being moved or deleted.  The page/position information is not necessarily unique.  I suggest that the API for AddStamp() be changed to return some unique identifier and then that identifier be part of the StampAnnotation object that is passed to the events for moving / deleting StampAnnotations.

Regards,
Arthur

8 Replies 1 reply marked as answer

SP Satheesh Palanisamy Syncfusion Team June 15, 2020 06:05 PM UTC

Hi Arthur,            
We were unable to reproduce the issue “StampAnnotations are not exported with other annotations using ExportAnnotations() API” in our end. Kindly try the below sample and let us know whether the provided sample resolved your issue.  
Please find the sample in the below link, 
If you are still facing the same issue, kindly share the following details to analyze more on this issue and assist you with the better solution   
  1. Simple sample/ Modify the above sample to reproduce the issue
  2. PDF document.
  3. Device specification.
  4. Xamarin Forms version
  5. SfPdfViewer version.
  6. Replication procedure to reproduce the issue
Regards,
Satheesh Palanisamy.




AB Arthur Butler June 16, 2020 02:44 AM UTC

See attached project.  I have only tested with UWP.

1. Start the app.

2. Select Stamp button to add a stamp to the page.

3. Add some other annotation such as Ink to this same page

4. Select Export to save the annotations to memory.

5. Select and delete the two annotations that you added in steps 2 & 3.  It seems that ClearAllAnnotations() does not work.

6. Select Import to restore the annotations.

Result => the Ink annotation is restored, but not the Stamp annotation.

This is with the latest Xamarin and Syncfusion.


Attachment: GettingStarted_68cd4a73.zip


AV Ashokkumar Viswanathan Syncfusion Team June 17, 2020 08:47 AM UTC

Hi Arthur, 
 
Thank you for the information provided, 
 
We were able to reproduce the issue, “StampAnnotations are not exported with other annotations using ExportAnnotations() API” in UWP Platform and “ClearAllAnnotation is not working properly”. Currently, we are validating the issue and we will update further details on June 19th , 2020. 
 
Regards, 
Ashok Kumar Viswanathan. 



AV Ashokkumar Viswanathan Syncfusion Team June 19, 2020 04:41 PM UTC

Hi Arthur, 
 
We have confirmed that the issue “StampAnnotations are not exported with other annotations using ExportAnnotations() API” and “ClearAllAnnotation is not working properly” is a defect and logged a defect report for this issue. The patch for this issue will be delivered on July 10th , 2020. 
 
Please find the feedback link, 
 
Regards, 
Ashok Kumar Viswanathan 



AV Ashokkumar Viswanathan Syncfusion Team July 10, 2020 07:00 PM UTC

Hi Arthur,      
     
We have resolved the issue, “StampAnnotations are not exported with other annotations using ExportAnnotations() API” and “ClearAllAnnotation is not working properly and consolidated custom NuGet for the same can be downloaded from the following link         
      
Custom NuGet :   
 
Please find the feedback links below, 
  
The operation that exports the stamp annotation involves asynchronous methods in our code base. So, we had to expose a new API to export the annotation asynchronously. Kindly use this API to export annotations including stamp annotations. 
Stream stream = await SfPdfViewer.ExportAnnotationsAsync(AnnotationDataFormat.Fdf); 
 
Disclaimer:   
Please note that we have created this NuGet for version 18.1.0.59 specifically to resolve the following issue(s) reported in this/the forum. 155175
 
    
Note : Kindly follow the steps to clear the NuGet cache and then install patched NuGet to get the issue resolved.    
     
        
This fix will be included in our 2020 Volume 2 service pack release which will be expected to be available in the month of July 2020.   
     
Regards,     
Ashok Kumar Viswanathan.  



AB Arthur Butler January 26, 2021 09:42 AM UTC

This feature of exporting / importing Stamp annotations appears to be broken in the latest version of Syncfusion  See attached example.

1.  Add some annotations 
2. Add a Stamp annotation via the Add Stamp button
3. Select Export Annotations to save the annotation data to a string (this also clears the annotations)
4. Select Import Annotations to restore the annotations

Result => Stamp annotation is not restored


Attachment: SfPdfViewerUWP_b626215f.zip


MK Muralitharan Karikalan Syncfusion Team January 27, 2021 05:26 PM UTC

Hi Arthur, 
 
Greetings from Syncfusion support. 
 
We were able to reproduce the issue, “Stamp annotations are  not exported and imported properly in Xamarin.Forms UWP platform”.  And we have confirmed that the issue  is a defect and logged a defect report for this issue. The fix for the same will be included in our upcoming weekly NuGet release which is expected to be available on February 3, 2021. 
 
Please find the feedback link below, 
 
Regards, 
Muralitharan K 



MK Muralitharan Karikalan Syncfusion Team February 3, 2021 08:04 AM UTC

Hi Arthur, 
 
We have included the fix for the issue, “Stamp annotations are  not exported and imported properly in Xamarin.Forms UWP platform in our Weekly NuGet release v18.4.0.41. Kindly update to the mentioned version to get the issue resolved. 
 
Please find our Weekly NuGet link below, 
 
Regards, 
Muralitharan K 


Marked as answer
Loader.
Up arrow icon