PdfFileAttachmentFromBytes Method

Creates an attachment from a byte array. The file content is embedded in the PDF

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public static PdfFileAttachment FromBytes(
	byte[] data,
	string fileName
)

Parameters

data  Byte
The file content
fileName  String
The file name shown in the Attachments panel

Return Value

PdfFileAttachment
A new attachment instance

See Also