DynaPDF Manual - Page 821

Previous Page 820   Index   Next Page 822

Function Reference
Page 821 of 839
SI32 pdfWatermarkAnnot(
const PPDF* IPDF, // Instance pointer
double PosX,
// x-coordinate
double PosY,
// y-coordinate
double Width,
// Annotation width
double Height)
// Annotation height
The function creates a Watermark annotation. Watermark annotations have no interactive elements
like other annotation types. This property is useful in many cases because it is usually not possible
to select or change the contents of a watermark annotation in viewer applications.
The annotation has no appearance after it was created. Call CreateAnnotAP() to create an
appearance template for the annotation. After the appearance template was created you can draw
text, images or vector graphics into it. The template must be closed with EndTemplate() when
finished. It is also possible to import an external page or EMF contents into the template.
Watermark annotations can be shared on multiple pages. To place the annotation on other pages call
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.
SI32 pdfWebLink(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of bounding rectangle
double PosY,
// Y-Coordinate of bounding rectangle
double Width,
// Width of bounding rectangle
double Height,
// Height of bounding rectangle
const char* URL)
// URL defined as null-terminated 7 bit ASCII string
The function inserts a web link onto the current open page. The parameter URL holds the URL
defined as 7 bit ASCII string. A uniform resource locator (URL) is a string that resolves to a resource
on the internet - typically a file that is the destination of a hypertext link, although it can also resolve
to a query or other entity. A web link opens the standard browser to view the resource by default.
The full version of Adobes Acrobat enables you also to embed a reverenced html resource in your
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the
bounding rectangle. If the coordinate system is top-down it defines the upper left corner.

Previous topic: UTF32ToUTF16Ex

Next topic: WriteAngleText