ClassByteArrayDocumentSource
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
ByteArrayDocumentSource()
Initializes a new instance of the ByteArrayDocumentSource class.
Declaration
public ByteArrayDocumentSource()
ByteArrayDocumentSource(byte[], bool)
Initializes a new instance of the ByteArrayDocumentSource class with the specified byte array.
Properties
Bytes
Gets or sets the byte array containing the PDF document data.
Declaration
public byte[] Bytes { get; set; }
Property Value
byte[]
The byte array containing the PDF document data.
IsImportAsync
Gets or sets a value indicating whether the document import should be performed asynchronously.
Declaration
public bool IsImportAsync { get; set; }
Property Value
true
if the document import is performed asynchronously; otherwise, false
. The default value is true
.
Operators
implicit operator ByteArrayDocumentSource(byte[])
Performs an implicit conversion from a byte array to ByteArrayDocumentSource.
Declaration
public static implicit operator ByteArrayDocumentSource(byte[] bytes)
Parameters
bytes
byte[]
The byte array to convert.
Returns
A new ByteArrayDocumentSource instance with the specified byte array.