PDFAttachment Type
The attachment of PDF file.
Remarks
The attachment of PDF file.
Fields
contentType String |
The Content-Type of the attachment. File extensions are mapped to the following Content-Type:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dataB Data |
This property contains the attachment data. When calling Save the data to use for the attachment will be obtained using the following search order. When a valid source of data is found the search stops.
After calling Load but before calling ParseAttachment the class will use the following search order to determine where the attachment data will be written. When a valid destination for the attachment data is found the search stops. When ParseAttachment is called the data will be written to the selected destination.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data String |
This property contains the attachment data. When calling Save the data to use for the attachment will be obtained using the following search order. When a valid source of data is found the search stops.
After calling Load but before calling ParseAttachment the class will use the following search order to determine where the attachment data will be written. When a valid destination for the attachment data is found the search stops. When ParseAttachment is called the data will be written to the selected destination.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description_ String |
The description of the attachment. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filename String |
This property optionally specifies the filename to use for input and output of the attachment data. When calling Save the data to use for the attachment will be obtained using the following search order. When a valid source of data is found the search stops.
After calling Load but before calling ParseAttachment the class will use the following search order to determine where the attachment data will be written. When a valid destination for the attachment data is found the search stops. When ParseAttachment is called the data will be written to the selected destination.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name String |
The name of the attachment. The default value is "" (empty string). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
relationship String |
The relationship of attachment. e.g. Alternative, Source. Note: this field is used for ZUGFeRD XML invoices. |
Constructors
public init()
public init(filename: String)
public init(name: String, data: Data, contentType: String)
public init(name: String, filename: String, contentType: String)