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: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 20.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