Hi,
I have that function:
public static void displayPDF(MemoryStream ms, Page returnPage = null, string title = “”)
{
if (isMobile())//on mobile that is the only working way until now…
{
Application.DownloadAndOpen(“_blank”, ms, title);
return;
}
var f = new Page();
if (returnPage != null) AddReturnFloatingButton(f, returnPage); //display a button to get back…
Application.Title = title;
Wisej.Web.PdfViewer v = new PdfViewer();
v.Dock = DockStyle.Fill;
v.PdfStream = ms;
v.FileName = title;
v.ViewerType = PdfViewerType.Auto;
f.Controls.Add(v);
f.Show();
}
As stated in comments, that works perfect on PC, but on Android PdfViewer seems unable to display directly from stream or file. It shows an “Open” button than save it locally.
Is it any way to display a pdf on Android without downloading it locally?