Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Common
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

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots