PdfFileAttachmentFromFile Method

Creates an attachment from a file on disk. The file is read and its content is embedded in the PDF. The file name shown in the Attachments panel is taken from the path

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public static PdfFileAttachment FromFile(
	string filePath
)

Parameters

filePath  String
The path to the file

Return Value

PdfFileAttachment
A new attachment instance

See Also