Table of Contents

Class EmbeddedFile

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Used to embed file objects. The file objects must added to the PDF before drawing on the first page.

public class EmbeddedFile
Inheritance
EmbeddedFile
Inherited Members

Constructors

EmbeddedFile(PDF, string, bool)

Embeds the file with the specified name into the PDF, compressed with Flate when compress is true.

public EmbeddedFile(PDF pdf, string fileName, bool compress)

Parameters

pdf PDF
fileName string
compress bool

EmbeddedFile(PDF, string, Stream, bool)

Embeds a file read from the stream into the PDF under the specified name.

public EmbeddedFile(PDF pdf, string fileName, Stream stream, bool compress)

Parameters

pdf PDF
fileName string
stream Stream
compress bool

EmbeddedFile(PDF, string, Stream, bool, string, Relationship?, string)

Embeds the file and says what it holds, how it relates to the document and what it is: the media type, such as "text/xml", the relationship and the description, in the words of a person. A document of PDF/A-3 needs all three of them for each file it carries, and so does a document that carries the XML of an invoice. PDF.AddAssociatedFile adds the embedded file to the document.

public EmbeddedFile(PDF pdf, string fileName, Stream stream, bool compress, string mediaType, Relationship? relationship, string description)

Parameters

pdf PDF
fileName string
stream Stream
compress bool
mediaType string
relationship Relationship?
description string

Methods

GetFileName()

Returns the name of the embedded file.

public string GetFileName()

Returns

string