DynaPDF Manual - Page 822
Previous Page 821 Index Next Page 823
Function Reference
Page 822 of 839
The border of the link annotation is drawn by using the current line width, stroke color and line
dash pattern. If the link should appear without a border set the line width to zero beforehand.
When clicking on a link annotation the rectangle is highlighted, that is a simple visual effect. Several
highlight modes are supported, see SetLinkHighlightMode() for further information.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. Because the URL must be
defined as 7 bit ASCII string, a Unicode URL must not contain characters outside of 7 bit ASCII.
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If
the function fails the return value is a negative error code.
WriteAngleText
Syntax:
LBOOL pdfWriteAngleText(
const PPDF* IPDF,
// Instance pointer
const char* AText, // Text to be printed
double Angle,
// Angle alpha in degrees
double PosX,
// X-Coordinate of the text
double PosY,
// Y-Coordinate of the text
double Radius,
// Output radius or 0, see below
double YOrigin)
// Origin of the y-axis, see below
The function draws text in a user defined angle around a radius. If the coordinate system is bottom-
up the point PosX, PosY defines the lower-left corner of the text, otherwise the top-left corner. The
parameter Radius moves the text in the rotated coordinate system on the x-axis so that the string will
be printed on a radius. The parameter YOrigin moves the string also in the rotated coordinate
system, but on the y-axis; the origin is measured in bottom-up coordinates independently of the
current coordinate system. The y-origin is required when the text should be centered on the y-axis.
For instance, if the coordinate system is bottom-up, the point PosX, PosY defines the baseline of the
text that is the center of the rotation. If the text should be centred on the y-axis the origin of the y-
axis must be moved downward by the half cap height of the current font (see example below).
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: WatermarkAnnot, WebLink
Next topic: WriteFText, Output rectangle