[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.EmbeddedFileStream

EmbeddedFileStream Class

Represents embedded file stream in PDF.

Inheritance
EmbeddedFileStream
Implements
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public class EmbeddedFileStream : PdfDictWrapper, IPdfDict
Public Class EmbeddedFileStream
    Inherits PdfDictWrapper
    Implements IPdfDict

Properties

Name Description
CheckSum

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 created with FromFile(GcPdfDocument, string) or FromBytes(GcPdfDocument, byte[]) methods.

CreationDate

Gets or sets the date and time when the embedded file was created.

MimeType

Gets or sets the file's MIME type.

ModificationDate

Gets or sets the date and time when the embedded file was last modified.

Size

Gets or sets the size of the embedded file, in bytes.

Methods

Name Description
FromBytes(GcPdfDocument, byte[])

Creates a new instance of EmbeddedFileStream from the specified array of bytes.

FromFile(GcPdfDocument, string)

Creates a new instance of EmbeddedFileStream from the specified file name.

The file data will be read when the GcPdfDocument is saved.

GetStream()

Gets the Stream containing content of this EmbeddedFileStream, stream should be disposed after usage. NOTE! Method can return null if this EmbeddedFileStream is empty.

Extension Methods