Merge annotations in pdf

Hi,

We want to allow users to download pdf with their annotations in it. How can we have merged pdf ? 

In your documentation, i can't find any explanation about how to do it. I can found how to export and import but we want a new pdf with annotations visible by any other pdf viewer.


Thanks




3 Replies

VS Vasugi Sivajothi Syncfusion Team September 21, 2021 05:03 PM UTC

Hi Nicolas, 
 
Thank you for contacting Syncfusion support. 
 
Currently, there is no support to merge the PDF document using the PDF Viewer control. However, we can merge multiple PDF documents using the PDF library. For more information, please refer to the below link. 
 
Please let us know if this suits your requirement. If not, please share more details about your requirement. This will be helpful to investigate further and provide the solution at the earliest. 
 
Regards, 
Vasugi. 



NI Nicolas September 21, 2021 06:18 PM UTC

Thanks for your answer, but it's not what i want to do.


I want to save pdf with annotations drawed on it. When users draw something or put stamp on the pdf, i want to allow them to download the file with annotation on it.


Can you tell me how to do that ? 


Best regards,



VS Vasugi Sivajothi Syncfusion Team September 22, 2021 07:36 AM UTC

Hi Nicolas, 
 
 
 
In our PDF Viewer, we can download the file with annotation using the download icon in the default toolbar or by using Download method. Please refer the documentation link. We can download the PDF document once the annotation is added by calling the DownloadAsync() method in the AnnotationAdded event. Please find the code snippet below. 
 
Code Snippet: 
 
 
 
<SfPdfViewerServer @ref="Viewer" DocumentPath="wwwroot/PDF Succinctly.pdf" Height="640px" Width="100%"> 
    <PdfViewerEvents AnnotationAdded="annotationAdded"></PdfViewerEvents> 
</SfPdfViewerServer> 
 
@code{ 
    public SfPdfViewerServer Viewer { get; set; } 
    public void annotationAdded() 
    { 
        Viewer.DownloadAsync(); 
    } 
 
} 
 
Note: It will download the PDF document directly into the downloads folder. 
 
 
Kindly try this and let us know if this suits your requirement. If not, please share more details about your requirement. This will be helpful to investigate further and assist you better.  
 
  
Regards,  
Vasugi.  


Loader.
Up arrow icon