PDFPAGE_Comment
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method inserts a comment into the page stream.

Syntax

HRESULT PDFPAGE_Comment (
BSTR comment
)
Parameters
comment
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.

Remarks

This method adds comments to a PDF document.

Equivalent in new interface: IPDFDocument4::AddComment.

Example

Inserting a Comment

Delphi
[copy to clipboard]
{ PDF object is supposed to be created           }
PDF.BeginDoc;
{ some operators here, maybe PDF.NewPage or else }
PDF.PDFPAGE_Comment('Here is my comment.');
PDF.EndDoc;

{ 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->BeginDoc();
// some operators here, maybe PDF.NewPage or else
PDF->PDFPAGE_Comment("Here is my comment.");
PDF->EndDoc();

// now PDF document's body will contain line:
//   % Here is my comment.
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
// some operators here, maybe PDF.NewPage or else
PDF.PDFPAGE_Comment("Here is my comment.");
PDF.EndDoc();

// 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.BeginDoc
' some operators here, maybe PDF.NewPage or else
PDF.PDFPAGE_Comment "Here is my comment."
PDF.EndDoc

' now PDF document's body will contain line:
'   % Here is my comment.

See Also

Reference