[]
DsPdfJS API / EmbeddedFileStream
Represents embedded file stream in PDF.
new EmbeddedFileStream(
om,bytes):EmbeddedFileStream
Initialize a new instance of the EmbeddedFileStream class.
ObjectManager that controls the lifetime of the EmbeddedFileStream.
Uint8Array
The file data.
EmbeddedFileStream
ObjectBase.constructor
new EmbeddedFileStream(
bytes):EmbeddedFileStream
Initialize a new instance of the EmbeddedFileStream class.
Uint8Array
The file data.
EmbeddedFileStream
ObjectBase.constructor
get checkSum():
Uint8Array<ArrayBufferLike> |null
Gets or sets a 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum is calculated by applying the standard MD5 message-digest algorithm to the bytes of the embedded file stream. Checksum calculated automatically when EmbeddedFileStream is created.
Uint8Array<ArrayBufferLike> | null
set checkSum(
value):void
Gets or sets a 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum is calculated by applying the standard MD5 message-digest algorithm to the bytes of the embedded file stream. Checksum calculated automatically when EmbeddedFileStream is created.
Uint8Array<ArrayBufferLike> | null
void
get creationDate():
PdfDateTime|null
Gets or sets the date and time when the embedded file was created.
PdfDateTime | null
set creationDate(
value):void
Gets or sets the date and time when the embedded file was created.
PdfDateTime | null
void
get id():
number
Gets the reference to the object.
number
get mimeType():
string|null
Gets or sets the file's MIME type.
string | null
set mimeType(
value):void
Gets or sets the file's MIME type.
string | null
void
get modificationDate():
PdfDateTime|null
Gets or sets the date and time when the embedded file was last modified.
PdfDateTime | null
set modificationDate(
value):void
Gets or sets the date and time when the embedded file was last modified.
PdfDateTime | null
void
get om():
ObjectManager
Gets the owner ObjectManager instance.
get size():
number|null
Gets or sets the size of the embedded file, in bytes.
number | null
set size(
value):void
Gets or sets the size of the embedded file, in bytes.
number | null
void
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
getStream():
Uint8Array<ArrayBufferLike> |null
Gets the Uint8Array containing content of this EmbeddedFileStream, stream should be disposed after usage. NOTE! Method can return null if this EmbeddedFileStream is empty.
Uint8Array<ArrayBufferLike> | null
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void