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: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.10.0
C#
public static PdfFileAttachment FromFile(
	string filePath
)

Parameters

filePath  String
The path to the file

Return Value

PdfFileAttachment
A new attachment instance

See Also