PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method inserts a comment into the page stream.
|
| 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


