[]
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>;
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>
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>
void
get creationDate(): PdfDateTime;
Gets or sets the date and time when the embedded file was created.
set creationDate(value): void;
Gets or sets the date and time when the embedded file was created.
void
get id(): number;
Gets the reference to the object.
number
get mimeType(): string;
Gets or sets the file's MIME type.
string
set mimeType(value): void;
Gets or sets the file's MIME type.
string
void
get modificationDate(): PdfDateTime;
Gets or sets the date and time when the embedded file was last modified.
set modificationDate(value): void;
Gets or sets the date and time when the embedded file was last modified.
void
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get size(): number;
Gets or sets the size of the embedded file, in bytes.
number
set size(value): void;
Gets or sets the size of the embedded file, in bytes.
number
void
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
getStream(): Uint8Array<ArrayBufferLike>;
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>
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void