AddUnicodeFileAttachmentAnnotation
IPDFDocument4 :: Page Operations :: Common

See Also
Collapse All

This method creates a file attachment annotation on the current PDF page.

Syntax

LONG AddUnicodeFileAttachmentAnnotation (
FLOAT x,
FLOAT y,
BSTR title,
BSTR contents,
BSTR filePath
)
Parameters
x
X coordinate of the top-left corner of the bounding rectangle

y
Y coordinate of the top-left corner of the bounding rectangle

title
Unicode title of the annotation

contents
Unicode contents of the annotation

filePath
Path to the file to embed into the PDF file

Return value
Index of the annotation

Remarks

This method inserts a file attachment annotation into the current page in the area bounded by the specified coordinates. The strings title and content set the title and content of the annotation.

The return value is an annotation/control identifier in the document's annotations collection and can be used in AddControlToAction and CurrentAnnotation.

See Also

Reference