AddSoundAnnotation
IPDFDocument4 :: Page Operations :: Common

See Also
Collapse All

This method creates a sound annotation on the current PDF page.

Syntax

LONG AddSoundAnnotation (
FLOAT x,
FLOAT y,
BSTR title,
BSTR contents,
BSTR filePath,
FontCharset charset
)
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
Title of the annotation

contents
Contents of the annotation

filePath
Path to the sound file to embed into the PDF file

charset
Character set of the annotation

Return value
Index of the annotation

Remarks

This method inserts a sound 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