Click or drag to resize
SignDocDocumentaddText2 Method
Add text to a page (with language identifier). This function behaves like addText() with an empty string for @a aLang. Multiple lines are not supported, the text must not contain CR and LF characters.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.7023.29499
Syntax
C#
public void addText2(
	string text,
	int page,
	double x,
	double y,
	string fontName,
	double fontSize,
	ISignDocColor textColor,
	double opacity,
	int flags,
	string lang
)

Parameters

text
Type: SystemString
The text. Complex scripts are supported, see @ref signdocshared_complex_scripts.
page
Type: SystemInt32
The 1-based page number of the page.
x
Type: SystemDouble
The X coordinate of the reference point of the visually left-most character in document
y
Type: SystemDouble
The Y coordinate of the reference point of the visually left-most character in document
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).
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.
flags
Type: SystemInt32
Must be 0.
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. .
Remarks
addTextRect2() is better than addText2() for RTL text.
See Also