Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 500

Previous Page 499   Index   Next Page 501

Function Reference
Page 500 of 750
This function is implemented as macro in C/C++. In prior DynaPDF versions the macro name was
PDF_WRONG_PWD() which is still defined. However, for consistency among different
programming languages the new macro name IsWrongPwd() should be used.
LineAnnot
Syntax:
SI32 pdfLineAnnot(
const PPDF* IPDF,
// Instance pointer
double x1,
// X-Coordinate of the start point
double y1,
// Y-Coordinate of the start point
double x2,
// X-Coordinate of the end point
double y2,
// Y-Coordinate of the end point
double LineWidth,
// Line width
TLineEndStyle Start,
// End line style of the start point
TLineEndStyle End,
// End line style of the end point
UI32 FillColor,
// Text and interiour color -> see description
UI32 StrokeColor,
// This is the line color
TPDFColorSpace CS,
// The color space in which colors are defined
const char* Author,
// Optional author
const char* Subject,
// Optional subject
const char* Content)
// Optional content or caption of a measure line
typedef enum
{
leNone,
leButt,
leCircle,
leClosedArrow,
leDiamond,
leOpenArrow,
leRClosedArrow,
leROpenArrow,
leSlash,
leSquare
}TLineEndStyle;
The function creates a line annotation. The simplest form of a line annotation represents a simple
straight line that has an associated PopUp annotation to display the string Content in a floating
window.
The initial window state of the associated PopUp annotation is closed by default but the state can be
changed with SetAnnotOpenState() if necessary.
The coordinates are interpreted in current user space. Any transformation that was applied on the
coordinate system will be taken into account.
The parameter FillColor is only used if the line end style of the start or end point has an interior that
can be filled. The special constant NO_COLOR represents a transparent interior.
The stroke color is required and must not be set to NO_COLOR.
 

Previous topic: IsWrongPwd

Next topic: Embedding CMap Files