Class
PdfEmbeddedFile
OfficeIMO.Pdf
Describes a file embedded in a generated PDF and associated with the document catalog or a canvas structure element.
Inheritance
- object
- PdfEmbeddedFile
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property PdfAttachmentEditSession.Attachments
- Property PdfCanvasStructureOptions.AssociatedFiles
- Property PdfCreateOptions.EmbeddedFiles
Accepted by parameters 6
Constructors
public PdfEmbeddedFile(string fileName, byte[] data, string? mimeType = null, PdfAssociatedFileRelationship relationship = Unspecified, string? description = null, DateTimeOffset? creationDate = null, DateTimeOffset? modificationDate = null) #Creates a PDF embedded file description.
Parameters
- fileName string
- data byte[]
- mimeType string? = null
- relationship OfficeIMO.Pdf.PdfAssociatedFileRelationship = Unspecified
- description string? = null
- creationDate System.DateTimeOffset? = null
- modificationDate System.DateTimeOffset? = null
Inherited Methods
Properties
public string FileName { get; set; } #Embedded file name as exposed in the PDF name tree.
public byte[] Data { get; } #Embedded file bytes. The returned array is a defensive copy.
public string? MimeType { get; set; } #Optional MIME type, for example "application/xml".
public PdfAssociatedFileRelationship Relationship { get; set; } #Associated-file relationship emitted as /AFRelationship.
public string? Description { get; set; } #Optional human-readable file description.
public DateTimeOffset? CreationDate { get; set; } #Optional embedded-file creation date.
public DateTimeOffset? ModificationDate { get; set; } #Optional embedded-file modification date.