PdfFileAttachmentAnnotationFromFile Method

Creates an attachment annotation from a file on disk. The file is read, embedded in the PDF, and an icon is placed on the specified page

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.10.0
C#
public static PdfFileAttachmentAnnotation FromFile(
	string filePath,
	int pageNumber,
	int x,
	int y
)

Parameters

filePath  String
The path to the file
pageNumber  Int32
The 1-based page number where the icon is placed
x  Int32
The icon X coordinate on the page
y  Int32
The icon Y coordinate on the page

Return Value

PdfFileAttachmentAnnotation
A new attachment annotation instance

See Also