Initializes a new instance of the PdfAttachment class
Namespace: Spire.Pdf.AttachmentsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public PdfAttachment( string fileName, byte[] data )
Public Sub New ( fileName As String, data As Byte() )
public: PdfAttachment( String^ fileName, array<unsigned char>^ data )
new : fileName : string * data : byte[] -> PdfAttachment
Parameters
- fileName
- String
Name of the file.
- data
- array<Byte>[]()[][]
The data to be attached as a file.