Class PdfAttachment
- Namespace
- MiPdf
- Assembly
- MiPdf.dll
A file embedded in the document (attachment).
public sealed class PdfAttachment
- Inheritance
-
PdfAttachment
- Inherited Members
Properties
Description
Description of the attachment (/Desc of the file specification), or null.
public string? Description { get; }
Property Value
FileName
File name (/UF or /F).
public string FileName { get; }
Property Value
FileSpec
The file specification dictionary.
public PdfDictionary FileSpec { get; }
Property Value
MimeType
MIME type (/Subtype of the embedded file stream).
public string? MimeType { get; }
Property Value
ModificationDate
Modification date of the file (/ModDate in /Params of the embedded file stream), or null.
public DateTimeOffset? ModificationDate { get; }
Property Value
Name
Key in the EmbeddedFiles name tree.
public string Name { get; }
Property Value
Relationship
The /AFRelationship entry; Unspecified if missing or unknown.
public AttachmentRelationship Relationship { get; }
Property Value
Size
Size in bytes as declared in /Params (may be missing).
public long? Size { get; }
Property Value
- long?
Methods
GetData()
Returns the file content.
public byte[] GetData()
Returns
- byte[]
ToString()
Returns file name, MIME type and size for display.
public override string ToString()