Is there a problem with the display of digital signatures created using iText library in a document in some pdf versions in Android project. In the same project for UWP, the signatures are displayed correctly.
The problem occurs when trying to flatten shapes. loadedDocument.Form returns null. Then, when I export the document to pdfviewer, the signatures are displayed correctly in the project for UWP and are absent in the project for Android.
Also, signatures are displayed correctly in most pdf versions and are always displayed in Adobe Reader.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(File.ReadAllBytes(path));
try
{
loadedDocument.Form.Flatten = true;
}
catch (Exception ex)
{
Console.WriteLine("Error" + ex);
}
MemoryStream memoryStream = new MemoryStream();
loadedDocument.Save(memoryStream);
loadedDocument.Close();
memoryStream.Position = 0;
pdfViewerControl.LoadDocument(memoryStream);