PdfViewer.DocumentSource Property
Gets or sets the PDF document source (a string path, URI, or stream).
Namespace: DevExpress.Maui.Pdf
Assembly: DevExpress.Maui.Pdf.dll
NuGet Package: DevExpress.Maui.Pdf
#Declaration
public PdfDocumentSource DocumentSource { get; set; }
#Property Value
Type | Description |
---|---|
Pdf |
A |
#Remarks
Initialize the DocumentSource
property with a UriPdfDocumentSource or StreamPdfDocumentSource object to load a PDF file by its URI or from a stream.
You can also call the following methods to load a PDF file from different sources:
- PdfDocumentSource.FromFile(String)
- PdfDocumentSource.FromStream(Stream)
- PdfDocumentSource.FromUri(Uri)
pdfViewer.DocumentSource = PdfDocumentSource.FromFile("ReportMerging.pdf");