Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public PdfDocumentSource DocumentSource { get; set; }

#Property Value

Type Description
PdfDocumentSource

A PdfDocumentSource descendant.

#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:

pdfViewer.DocumentSource = PdfDocumentSource.FromFile("ReportMerging.pdf");
See Also