PdfDocumentSource allows you to load a PDF in FlexViewer control using two methods, LoadFromFile and LoadFromStream, of C1PdfDocumentSource class. The LoadFromFile method loads PDF from the source file and the LoadFromStream method loads a PDf from source stream.
The following code uses the LoadFromFile method to load a PDF from source file.
The following code uses the LoadFromStream method to load a PDF from source stream.