Class EmbeddedFile
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
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
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
pdfPDFfileNamestringstreamStreamcompressboolmediaTypestringrelationshipRelationship?descriptionstring
Methods
GetFileName()
Returns the name of the embedded file.
public string GetFileName()