[]
Represents embedded file stream in PDF.
public class EmbeddedFileStream : PdfDictWrapper, IPdfDict
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.
public byte[] CheckSum { get; set; }
Gets or sets the date and time when the embedded file was created.
public PdfDateTime? CreationDate { get; set; }
Gets or sets the file's MIME type.
public string MimeType { get; set; }
Gets or sets the date and time when the embedded file was last modified.
public PdfDateTime? ModificationDate { get; set; }
Gets or sets the size of the embedded file, in bytes.
public int? Size { get; set; }
Creates a new instance of EmbeddedFileStream from the specified array of bytes.
public static EmbeddedFileStream FromBytes(GcPdfDocument doc, byte[] bytes)
doc
GcPdfDocumentThe owner document.
bytes
byte[]The file data.
The newly created object.
Creates a new instance of EmbeddedFileStream from the specified file name.
The file data will be read when the GcPdfDocument is saved.
public static EmbeddedFileStream FromFile(GcPdfDocument doc, string fileName)
doc
GcPdfDocumentThe owner document.
fileName
stringThe file name.
The newly created object.
Gets the System.IO.Stream containing content of this EmbeddedFileStream, stream should be disposed after usage. NOTE! Method can return null if this EmbeddedFileStream is empty.
public Stream GetStream()