Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Adds the text object.
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
- text
- Type: Apitron.PDF.Kit.FixedLayout.ContentTextObject
The text.
Examples
C#
// create text object TextObject text = new TextObject("Helvetica", 14); text.SetTextMatrix(1, 0, 0, 1, 10, 10); text.AppendText("Hello world!"); // add page Page page = new Page(new PageBoundary(Boundaries.A4)); // append our text page.Content.AppendText(text); document.Pages.Add(page);
See Also