This Quick Start guides you through a step-by-step process of creating a simple application for loading a PDF document using PdfDocumentSource and viewing it in FlexViewer, a lightweight viewer control.
The following image shows a PDF document rendered in FlexViewer.
To load and view a PDF document using the PdfDocumentSource component and FlexViewer control, follow the steps below:
To load and view a PDF document using the PdfDocumentSource component and FlexViewer control, follow the steps below:
C# |
Copy Code
|
---|---|
using C1.Win.Document;
|
C# |
Copy Code
|
---|---|
C1PdfDocumentSource pds = new C1PdfDocumentSource(); pds.LoadFromFile(@"..\..\DefaultDocument.pdf"); |
C# |
Copy Code
|
---|---|
flexViewer.DocumentSource = pds; |