PdfLoadedDocument cannot display some of the forms that exist in the document.

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

5 Replies 1 reply marked as answer

MK Muralitharan Karikalan Syncfusion Team May 5, 2021 10:43 AM UTC

Hi Vladimir, 
 
Kindly share us the digitally signed PDF document which you are facing the issue to analyze further in this and help you with better solution. 
 
Regards, 
Muralitharan K  



VL Vladimir May 5, 2021 12:42 PM UTC

Hello Karikalan.

Thanks for the quick response. The attachment contains a pdf file and screenshots of UWP and Adroid applications.

Sincerely, Vladimir.

Attachment: info_3b880906.zip


MK Muralitharan Karikalan Syncfusion Team May 6, 2021 11:27 AM UTC

Hi Vladimir, 
 
Thanks for your update. We were able to reproduce the issue, “Digital signature is missing while loading a particular PDF document  and loadedDocument.Form returns null in Xamarin.Forms Android platform”. Currently, we are validating this issue and we will update the further details on May 10, 2021. 
 
Regards, 
Muralitharan K                  



MK Muralitharan Karikalan Syncfusion Team May 10, 2021 02:28 PM UTC

Hi Vladimir,   
    
We have confirmed that the issue “Digital signature is missing while loading a particular PDF document  and loadedDocument.Form returns null in Xamarin.Forms Android platform” is a defect and logged a defect report for this issue. The patch for this issue will be delivered on May 31, 2021.   
   
Please find the feedback link below,   
    
Regards,   
Muralitharan K.   



AV Ashokkumar Viswanathan Syncfusion Team May 31, 2021 06:05 PM UTC

Hi Vladimir,      
      
We have resolved the issue “Digital signature is missing while loading a particular PDF document  and loadedDocument.Form returns null in Xamarin.Forms Android platform" and the custom NuGet for the same can be downloaded from the following link         
      
 
Please install the NuGet in the following order   
  1. Syncfusion.Xamarin.PDF (Patched NuGet from the above)
  2. Syncfusion.Xamarin.SfPdfViewer (From NuGet.org)
     
Disclaimer:   
Please note that we have created this NuGet for version 19.1.0.63 specifically to resolve the following issue(s) reported in this/the forum. 165145
 
    
Note : Kindly follow the steps to clear the NuGet cache and then install patched NuGet to get the issue resolved.    
     
 
This fix will be included in our 2021 Volume 2 main release which is expected to be available in the month of June 2021.  
    
Regards,     
Ashok Kumar Viswanathan.  


Marked as answer
Loader.
Up arrow icon