Custom Load and Save annotated Pdf

Hi,

Thank you for your great support.

I need your help for:

  1. Have the current user logged in the application as the Author of annotation.
  2. When saving annotations, export annotation in a separate file for the current user and not modifing the pdf file.
  3. When loading the pdf file in the viewer, import the file where annotations of the current user are saved.
  4. Possibility of adding a personalized annotation like a point map linked to a record of a table (diplay the record if we click on this point).

Thank you.

1 Reply

MS Mohan Selvaraj Syncfusion Team March 3, 2020 01:41 PM UTC

Hi Aitlahmid , 


Please find the details below. 

Have the current user logged in the application as the Author of annotation. 
In our PDF Viewer control we will update the author of the annotation based on the author set in the annotation settings property during control initialization or else we will set the author name as ‘Guest’. Kindly refer the API documentation and UG documentation for more details. 

    <EjsPdfViewerServer Height="100%" DocumentPath="@DocumentPath" AnnotationSettings="@AnnotationSettings">
    </EjsPdfViewerServer>
 
  
@code 
{
    public string DocumentPath { get; set; } = "wwwroot/data/Barcode.pdf";
 
  
    public Syncfusion.EJ2.Blazor.PdfViewer.AnnotationSettingsModel AnnotationSettings = new Syncfusion.EJ2.Blazor.PdfViewer.AnnotationSettingsModel
    {
        Author = "Syncfusion"
    };
 
 


When saving annotations, export annotation in a separate file for the current user and not modifing the pdf file. 
We have provided the support for exporting the annotation details as the separate Json file with out modifying the PDF document . Please find the UG documentation for importing and exporting the annotations. 
When loading the pdf file in the viewer, import the file where annotations of the current user are saved. 
As we mentioned in our first query . If we set the author name in the annotation settings and then on export the annotation. The exported D annotation author name will be same which we have set in the annotation settings property. So on importing the same , the author name will be set based on the name in the exported file. 
Possibility of adding a personalized annotation like a point map linked to a record of a table (diplay the record if we click on this point). 
Can you please provide more details about the query? 





Regards, 
Mohan S 


Loader.
Up arrow icon