| SignDocDocumentaddTextRect2 Method |
Add text in a rectangle of a page (with line breaking and language indentifier).
The interpretation of CR and LF in the text depends on
the value of flags
Namespace:
de.softpro.signdocsdk
Assembly:
SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.7023.29499
Syntaxpublic void addTextRect2(
string text,
int page,
double x0,
double y0,
double x1,
double y1,
string fontName,
double fontSize,
double lineSkip,
ISignDocColor textColor,
double opacity,
HorizontalAlignment horizAlign,
VerticalAlignment vertAlign,
AddTextRectFlags flags,
string lang
)
Parameters
- text
- Type: SystemString
The text. Allowed control characters are
CR and LF. Any sequence of CR and LF characters
starts a new paragraph. - page
- Type: SystemInt32
The 1-based page number of the page. - x0
- Type: SystemDouble
X coordinate of lower left corner. - y0
- Type: SystemDouble
Y coordinate of lower left corner. - x1
- Type: SystemDouble
X coordinate of upper right corner. - y1
- Type: SystemDouble
Y coordinate of upper right corner. - fontName
- Type: SystemString
The font name.
This can be the name of a standard font,
the name of an already embedded font, or
the name of a font defined by a font
configuration file. - fontSize
- Type: SystemDouble
The font size (in user space units). - lineSkip
- Type: SystemDouble
The vertical distance between the baselines of
successive lines (usually 1.2 * aFontSize). - textColor
- Type: de.softpro.signdocsdkISignDocColor
The text color. - opacity
- Type: SystemDouble
The opacity, 0.0 (transparent) through 1.0 (opaque).
Documents conforming to PDF/A-1 must use an opacity
of 1.0. - horizAlign
- Type: de.softpro.signdocsdk.Enums.EDocumentHorizontalAlignment
Horizontal alignment of the text (ha_left,
ha_center, ha_right or ha_auto). - vertAlign
- Type: de.softpro.signdocsdk.Enums.EDocumentVerticalAlignment
Vertical alignment of the text (va_top,
va_center, or va_bottom). - flags
- Type: de.softpro.signdocsdk.Enums.EDocumentAddTextRectFlags
Flags modifying the behavior of this function (Compat, Ltr, Rtl , DefaultLtr, DefautRtl). - lang
- Type: SystemString
Language identifier for @a aText, either an
RFC 3066 language tag (example: "en-US") or
an empty string or null.
If a PDF/UA document does not
specify a natural language, a language identifier
is required. If a language identifier is required
and @a aLang is an empty string or null, the
behavior depends on flag f_require_lang:
- if f_require_lang is set, this function will
fail
- if f_require_lang is not set, language tag
"en" (or the language set with
setDefaultDocumentLanguage()) will be used.
.
See Also