Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Appends the text with positions.
Show one or more text strings, allowing individual glyph positioning. Each element of array shall be either a string or a number.
If the element is a string, this operator shall show the string. If it is a number, the operator shall adjust the text position by that amount; that is, it shall translate the text matrix.
The number shall be expressed in thousandths of a unit of text space. This amount shall be subtracted from the current horizontal or vertical coordinate, depending on the writing mode.
In the default coordinate system, a positive adjustment has the effect of moving the next glyph painted either to the left or down by the given amount.
Namespace: Apitron.PDF.Kit.FixedLayout.Content
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
Parameters
- words
- Type: SystemString
The characters. - tjs
- Type: SystemDouble
The positions.
Remarks
Examples
C#
TextObject text = new TextObject(StandardFonts.CourierBold, 20); text.SetTextRenderingMode(RenderingMode.FillAndStrokeText); text.SetTextMatrix(1, 0, 0, 1, 10, (Boundaries.A4).Height - 50); string[] worlds = new string[4] {"Apitron's", "world", "of", "PDF"}; double[] tjs = new double[4] {-5000f, -3000f, -1000f, 0f}; text.AppendTextWithPositions(worlds, tjs); document.Pages[0].Content.AppendText(text);
See Also