PDFANNOTATION_Flags_afPrint
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value indicating if the annotation is printed.

Syntax

VARIANT_BOOL PDFANNOTATION_Flags_afPrint { get; set; }
Value
VARIANT_TRUE if the control is printed with the page, VARIANT_FALSE otherwise.

Remarks

If set to VARIANT_TRUE, print the annotation when the page is printed. If set to VARIANT_FALSE, never print the annotation, regardless of whether it is displayed on the screen. This can be useful, for example, for annotations representing interactive push buttons, which would serve no purpose on the printed page.

Equivalent in new interface: IPDFDocument4::AnnotPrint.

Example

Changing an Annotation's Flags

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, 'Title',
    'Here goes annotation contents...', 255, false, false, false,
    false, false, false, false, false, charsetANSI_CHARSET);
PDF.PDFANNOTATION_Flags_afPrint := true;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
    "Here goes annotation contents...", 255, FALSE, FALSE, FALSE,
    FALSE, FALSE, FALSE, FALSE, FALSE, charsetANSI_CHARSET);
PDF->PDFANNOTATION_Flags_afPrint = TRUE;
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
    "Here goes annotation contents...", 255, false, false, false,
    false, false, false, false, false, TxFontCharset.charsetANSI_CHARSET);
PDF.PDFANNOTATION_Flags_afPrint = true;
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_SetAnnotation 100, 200, 110, 210, "Title",_
    "Here goes annotation contents...", 255,_
    false, false, false, false, false, false, false, false, 0
PDF.PDFANNOTATION_Flags_afPrint = True
PDF.EndDoc

See Also

Reference