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
- wordsWithOffsets
- Type: SystemObject
The characters.
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); object[] worldsWithOffsets = new object[7] {"Apitron's", -5000f, "world", -3000f, "of", -1000f, "PDF"}; text.AppendTextWithPositions(worldsWithOffsets); document.Pages[0].Content.AppendText(text);
See Also