Represents a document source that loads PDF documents from a byte array.
Definition
Namespace:Telerik.Maui.Controls.PdfViewer
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ByteArrayDocumentSource : DocumentSource, INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBaseDocumentSourceByteArrayDocumentSource
Implements:
Inherited Members
Constructors
Initializes a new instance of the ByteArrayDocumentSource class.
public ByteArrayDocumentSource()
Initializes a new instance of the ByteArrayDocumentSource class with the specified byte array.
Properties
Gets or sets the byte array containing the PDF document data.
public byte[] Bytes { get; set; }
The byte array containing the PDF document data.
Gets or sets a value indicating whether the document import should be performed asynchronously.
public bool IsImportAsync { get; set; }
true if the document import is performed asynchronously; otherwise, false. The default value is true.
Operators
Performs an implicit conversion from a byte array to ByteArrayDocumentSource.
public static implicit operator ByteArrayDocumentSource(byte[] bytes)
The byte array to convert.
Returns:A new ByteArrayDocumentSource instance with the specified byte array.