Opening PDF on Xamarin.Forms platform results in "The PDF contains XFA Forms which cannot be viewed in PDF viewer"

Hi,

We are trying to open a PDF document with fillable fields that has been previously edited and saved using 
Syncfusion.Xamarin.SfPdfViewer control (version 18.1.0.59) for Xamarin.Forms platform, running on iOS v.13.5.
When the document is opened on iOS using SfPdfViewer control, the following message box shows up "The PDF contains XFA Forms which cannot be viewed in PDF viewer".
( I have attached the screenshot of the message box)
Clicking "OK" on the message box dismisses it and the document can be viewed, edited etc.

How do we get rid of this annoying message box, since it looks like SfPdfViewer control itself still works as expected despite the warning message box being shown?

Thanks,
Sheldon


Attachment: SfPdfViewer_MsgBox_448f3df0.zip

5 Replies 1 reply marked as answer

AV Ashokkumar Viswanathan Syncfusion Team June 25, 2020 01:18 PM UTC

Hi Sheldon, 
 
Greetings from Syncfusion support, 
 
We were able to reproduce the issue, “Application shows ‘XFA forms not supported’ popup while reloading the saved form filling document”. Currently, we are validating the issue and we will update the further details on June 29th , 2020. 
 
Regards, 
Ashok Kumar Viswanathan. 



AV Ashokkumar Viswanathan Syncfusion Team June 29, 2020 12:33 PM UTC

Hi Sheldon,  
  
Thank you for your patience,  
  
We have confirmed that the issue “Application shows ‘XFA forms not supported’ popup while reloading the saved form filling document” is a defect and logged a defect report for this issue. The patch for this issue will be delivered on July 2nd , 2020.  
  
Please find the feedback link,  
  
Regards,  
Ashok Kumar Viswanathan.  



AV Ashokkumar Viswanathan Syncfusion Team July 2, 2020 07:44 AM UTC

Hi Sheldon,      
      
We have resolved the issue “Application shows ‘XFA forms not supported’ popup while reloading the saved form filling document and the custom NuGet for the same can be downloaded from the following link         
      
Custom NuGet :   
 
 
Please find the feedback link below, 
 
 
Please install the NuGet in the following order   
1.       Syncfusion.Xamarin.PDF [Patched NuGet from the above]   
2.       Syncfusion.Xamarin.SfPdfViewer [Patched NuGet from the above]   
     
Disclaimer:   
Please note that we have created this NuGet for version 18.1.0.59 specifically to resolve the following issue(s) reported in this/the forum. 155492     
 
    
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 2020 Volume 2 Service pack release which will be expected to be available in the month of July 2020.   
     
Regards,     
Ashok Kumar Viswanathan.  



CF Casey Friedman November 11, 2021 06:51 PM UTC

I think this issue is still active. I am having a similar issue when I try to load a pdf that I have edited. I can load the pdf in the class constructor, but if I try to load the pdf at runtime (when the user presses a button) I get a popup:

"The PDF contains XFA Forms which cannot be viewed in PDF Viewer."



I edited the pdf like this:


var fileStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("CustomRenderer.f1040_2020_irs.pdf");


PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileStream);



foreach (var item in loadedDocument.Form.Fields)

{


var item2 = item as PdfLoadedTextBoxField;


if (item2 != null)

{

item2.Text = "This is a test";


}


}



var stream = new MemoryStream();




loadedDocument.Save(stream);



pdfViewerControl.LoadDocument(stream);


The PDF loads fine, it's just annoying that there's a popup.


I am using Syncfusion.Xamarin.SfPdfViewer 19.3.0.48 and Syncfusion.Xamarin.Pdf 19.3.0.48. I am experiencing this issue on an Android 9.0.





VD Vikram Devaraj Syncfusion Team November 12, 2021 10:41 AM UTC

Hi  Casey,  
  
Greetings from Syncfusion support,  
  
We were unable to reproduce the issue, “Application shows ‘XFA Forms which cannot be viewed’ popup while loading the form filling document” and it is working as expected. Could you please try the below-provided sample and let us know whether we have missed out anything while replicating the issue.  
   
Please find the sample in the below link, which we have used to reproduce the issue in our end  
  
Kindly share the following details to analyze more on this issue and assist you with the better solution    
1.Simple sample/ modify the above sample to reproduce the issue.   
2.Replication video/procedure to reproduce the issue.  
3.PDF document   
  
Regards,  
Vikram 


Marked as answer
Loader.
Up arrow icon