Table of Contents

Class PdfEmbeddedFile

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Class for a file embedded in PDF.

public sealed class PdfEmbeddedFile
Inheritance
PdfEmbeddedFile
Inherited Members

Remarks

File specifications (see PdfFileSpecification) ordinarily refer to files external to the PDF file in which they occur. When a PDF file is archived or transmitted, all external files it refers to must accompany it to preserve the file's integrity.

Embedded files address this problem by allowing the contents of referenced files to be embedded 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.

Properties

CreationDate

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

Id

Gets the identifier of this embedded file in this PdfDocument.

MimeType

Gets or sets the MIME media type of the embedded file.

ModifiedDate

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

Size

Gets the size of the embedded file, in bytes.

WriteWithoutCompression

Gets or sets the value indicating whether this file should be embedded as is, without being compressed.

Methods

GetChecksum()

Gets the MD5 checksum of the embedded file.

ReplaceWith(byte[])

Replaces embedded file contents with the provided bytes.

ReplaceWith(Stream)

Replaces embedded file contents with contents of the specified stream.

ReplaceWith(string)

Replaces embedded file contents with contents of the specified file.

Save(Stream)

Saves the embedded file to the specified stream.

Save(string)

Saves the embedded file to the file with specified name.