PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllInserts a comment into the page stream.
|
| HRESULT PDFPAGE_Comment ( BSTR comment ) |
Parameters
comment
The comment body.
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
The method adds comments to a PDF document.
Analogue in new interface: IPDFDocument4::AddComment.
Example
PDF.BeginDoc
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


