PdfPage.AddFileAttachment Method (PdfRectangle, PdfEmbeddedFile, FileAttachIcon)

PDF File Writer

PdfPageAddFileAttachment Method (PdfRectangle, PdfEmbeddedFile, FileAttachIcon)

Add annotation file attachement with icon

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public PdfAnnotation AddFileAttachment(
	PdfRectangle AnnotRect,
	PdfEmbeddedFile EmbeddedFile,
	FileAttachIcon Icon
)

Parameters

AnnotRect
Type: PdfFileWriterPdfRectangle
Annotation rectangle
EmbeddedFile
Type: PdfFileWriterPdfEmbeddedFile
Embedded file
Icon
Type: PdfFileWriterFileAttachIcon
Icon

Return Value

Type: PdfAnnotation
PdfAnnotation
Remarks
The AnnotRect is the icon rectangle area. To access the file the user has to right click on the icon.
See Also