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.