AddComment
IPDFDocument4 :: Page Operations :: Common

See Also Example
Collapse All

This method inserts a comment into the page stream.

Syntax

HRESULT AddComment (
BSTR comment
)
Parameters
comment
The body of the comment

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Example

Inserting a Comment

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.AddComment('Here is my comment.');
{ now PDF document's body will contain line: }
{   % Here is my comment. }
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->AddComment("Here is my comment.");
// now PDF document's body will contain line:
//   % Here is my comment.
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.AddComment("Here is my comment.");
// now PDF document's body will contain line:
//   % Here is my comment.
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.AddComment "Here is my comment."
' now PDF document's body will contain line:
'   % Here is my comment.

See Also

Reference