Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
PDFANNOTATION_Flags_afNoZoom

See Also Example
Collapse All

Gets or sets value indicating if the annotation is scaled to match the magnification of the page.

Syntax

VARIANT_BOOL PDFANNOTATION_Flags_afNoZoom { get; set; }
Value

VARIANT_TRUE if the control is not scaled to match the magnification of the page, VARIANT_FALSE otherwise.

Remarks

If set to TRUE, do not scale the annotation's appearance to match the magnification of the page. The location of the annotation on the page, defined by the upper-left corner of its bounding box, remains fixed, regardless of the page magnification.

Analogue in new interface: IPDFDocument4::AnnotNoZoom.

Example

Changing 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_afNoZoom := 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_afNoZoom = 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_afNoZoom = 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_afNoZoom = True
PDF.EndDoc

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots