[]
The following example demonstrates loading a PDF document in FlexViewer.
using C1.Document;
using C1.Maui.Viewer;
using C1.Report;
using System.Net;C#
var source = new C1PdfDocumentSource();source.LoadFromFile(@"D:\FlexViewer\DefaultDocument.pdf");
flexViewer.DocumentSource = source;Note:
LoadFromFileis synchronous and processes the PDF on the calling thread. For large documents or low-memory devices, run the operation on a background thread to keep the UI responsive.