Click or drag to resize

PdfEmbeddedFile Class

Represents an embedded file stream (PDF 1.3) that enables embedding the contents of referenced files directly within the body of the PDF file. This makes the PDF file a self-contained unit that can be stored or transmitted as a single entity.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.PdfPdfEmbeddedFile

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax
public class PdfEmbeddedFile : PdfObject

The PdfEmbeddedFile type exposes the following members.

Properties
 NameDescription
Public propertyCheckSum

(Optional) A 16-byte array that is the checksum of the bytes of the uncompressed embedded file. The checksum shall be calculated by applying the standard MD5 message-digest algorithm (described in Internet RFC 1321, The MD5 Message-Digest Algorithm) to the bytes of the embedded file stream.

Note  Note
This is strictly a checksum, and is not used for security purposes.
Public propertyCompressedSize Gets the size of the compressed embedded file, in bytes.
Public propertyCreationDate(Optional) The date and time when the embedded file was created. See "Table 157: Entries in a collection field dictionary".
Public propertyMediaType(Optional, required in the case of an embedded file stream used as as associated file) The media type of the embedded file. The value of this entry shall conform to the MIME media type names defined in Internet RFC2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types.
Public propertyMetadata(Optional; PDF 1.4) A metadata stream containing metadata for the component.
(Inherited from PdfObject)
Public propertyModificationDate(Optional, required in the case of an embedded file stream used as an associated file) The date and time when the embedded file was last modified. See "Table 157: Entries in a collection field dictionary".
Public propertySize(Optional) The size of the uncompressed embedded file, in bytes. See "Table 157: Entries in a collection field dictionary".
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodOpenRead Opens this PdfEmbeddedFile so its data can be read. The data is automatically uncompressed, if needed.
Public methodOpenWrite Opens this PdfEmbeddedFile so its data can be written.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also