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);