Class PdfAttachmentData
A file to attach to a PDF document.
Assembly: FacturXDotNet.dll
csharp
public class PdfAttachmentData
Properties
Name
The name of the file.
csharp
public string Name { get; }
Content
The content of the file.
csharp
public ReadOnlyMemory<byte> Content { get; }
Description
The description of the file.
csharp
public string? Description { get; set; }
MimeType
The MIME type of the file.
csharp
public string? MimeType { get; set; }
Relationship
The relationship of the file to the PDF document.
csharp
public AfRelationship? Relationship { get; set; }
CreationDate
The date of the creation of the file. If not set, the current date is used.
csharp
public DateTime? CreationDate { get; set; }
ModificationDate
The date of the last modification of the file. It not set, the current date is used.
csharp
public DateTime? ModificationDate { get; set; }
Methods
LoadFromStream(string, Stream)
Load a file from a stream.
csharp
public static PdfAttachmentData LoadFromStream(string name, Stream stream)
Returns
FacturXDotNet.Generation.PDF.PdfAttachmentData: The file.
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the file. |
System.IO.Stream | stream | The stream to load the file from. |