When I try to work with different PDF files some of the stamps are not showing in the PDF preview.

I have a file selector. When I select a file it loads in the PDF preview.

I add the signature stamps and an additional one.

When I select another file and then go back to the pdf where I added the stamps, the signature stamp is not displayed, but when exporting the file PDF it appears again.


I attach a video showing the case.


The 'Save document' button event calls this endpoint:

public string Download(Dictionary jsonObject)

{
PdfRenderer pdfviewer = new PdfRenderer(_cache);
return pdfviewer.GetDocumentAsBase64(jsonObject);
}


To load the file again I use:

public object Load(MemoryStream stream, Dictionary<string, string> jsonObject)        

{            
PdfRenderer pdfviewer = new PdfRenderer(_cache);            
PdfRenderer.ReferencePath = $"{_hostingEnvironment.ContentRootPath}{Path.DirectorySeparatorChar}wwwroot{Path.DirectorySeparatorChar}Files{Path.DirectorySeparatorChar}";
return pdfviewer.Load(stream, jsonObject);        

1 Reply 1 reply marked as answer

VS Vasugi Sivajothi Syncfusion Team August 4, 2021 06:54 AM UTC

Hi David, 
 
Thank you for contacting Syncfusion support. 
 
We suspect that the reported issue occurs because of loading the PNG image in the PDF document. At present, there is no support to save and load the image in PNG format. Currently we have provided the support only for the jpg and jpeg image formats. We have already logged the feature “Support for saving and loading the custom stamp annotation in PNG format” and the implementation will be included in any of our upcoming releases. 
 
Now, you can track the status through the below link.  
           
 
 
Regards, 
Vasugi. 



Marked as answer
Loader.
Up arrow icon