PdfEmbeddedFileOptions Class
The attributes of a file embedded in a document (PdfEmbeddedFileCollection.Add, PdfAnnotationCollection.AddFileAttachment).
public sealed class PdfEmbeddedFileOptionsConstructors
| Name | Description |
|---|---|
| PdfEmbeddedFileOptions() |
PdfEmbeddedFileOptions()
public PdfEmbeddedFileOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| CreationDate | Gets the date the file was created (/Params /CreationDate), or null to leave it out. |
| Description | Gets the description of the file (/Desc), which PDF/UA-2 requires for the files of the document. |
| MimeType | Gets the MIME type of the file (/Subtype of the embedded file stream), such as text/csv. The default, null, writes application/octet-stream: PDF/A-3 and PDF/A-4 need a MIME type. |
| ModificationDate | Gets the date the file was last modified (/Params /ModDate), or null to leave it out. |
| Relationship | Gets how the file relates to the content of the document (/AFRelationship). The default is PdfAssociatedFileRelationship.Unspecified. |
CreationDate
PdfEmbeddedFileOptions.csGets the date the file was created (/Params /CreationDate), or null to leave it out.
public DateTimeOffset? CreationDate { get; init; }Property value
Description
PdfEmbeddedFileOptions.csMimeType
PdfEmbeddedFileOptions.csModificationDate
PdfEmbeddedFileOptions.csGets the date the file was last modified (/Params /ModDate), or null to leave it out.
public DateTimeOffset? ModificationDate { get; init; }Property value
Remarks
The library never writes a date it is not given: the output of a save depends only on the document.
Relationship
PdfEmbeddedFileOptions.csGets how the file relates to the content of the document (/AFRelationship). The default is PdfAssociatedFileRelationship.Unspecified.
public PdfAssociatedFileRelationship Relationship { get; init; }