DynaPDF Manual - Page 811

Previous Page 810   Index   Next Page 812

Function Reference
Page 811 of 839
The function creates a stamp annotation. The function is able to create appearance streams for the
predefined stamps in English, German, and France. The default language is English.
In order to create a stamp in a different language than English, set the language identifier with
SetLanguage() before creating the annotation. StampAnnot() supports only the notation as country
key, e.g. "EN", "FR", "DE-de", and so on. Only the first two characters are used to identify the wished
language. The comparison is non-case-sensitive.
The default stamps are drawn in the following default colors:
Stamp
Default color
rsApproved
PDF_RGB( 62, 172,
72)
rsAsIs
PDF_RGB(240,
64,
36)
rsConfidential
PDF_RGB(240,
64,
36)
rsDepartmental
PDF_RGB(
0, 112, 186)
rsDraft
PDF_RGB(240,
64,
36)
rsExperimental
PDF_RGB(
0, 112, 186)
rsExpired
PDF_RGB(240,
64,
36)
rsFinal
PDF_RGB(240,
64,
36)
rsForComment
PDF_RGB( 62, 172,
72)
rsForPublicRelease
PDF_RGB( 62, 172,
72)
rsNotApproved
PDF_RGB(240,
64,
36)
rsNotForPublicRelease
PDF_RGB(240,
64,
36)
rsSold
PDF_RGB(
0, 112, 186)
rsTopSecret
PDF_RGB(240,
64,
36)
The default color can be changed if necessary with SetAnnotColor(). The color type must be set to
fcBorderColor.
A user defined stamp can be created as follows:
Create the stamp with SubType set to rsUserDefined.
Call CreateAnnotAP() with the handle of the stamp annotation to create a user defined
appearance stream.
Draw arbitrary contents and close the template finally with EndTemplate(), finished!
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.
StrokePath
Syntax:
LBOOL pdfStrokePath(
const PPDF* IPDF) // Instance pointer
The function strokes the current path without closing it. If no open path can be detected the function
returns with a warning.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: StampAnnot

Next topic: TestGlyphs, TestGlyphsEx, TextAnnot