In the world of document processing, accurate text placement is crucial for creating professional and readable documents. Regardless of whether you are working with simple text or complex scripts, Pdf.Net provides the functionality needed to ensure the best appearance of your documents, the exact location of the text can be essential. This article will help you improve the placement of text in C# and .NET using SautinSoft.Pdf.
To place text in a specific place on a PDF page, you can use the "DrawText" method. This method requires the "PdfFormattedText" and "PdfPoint" objects, which set the coordinates. For more convenient text placement, you can use various properties and methods provided by Pdf.Net library, for example, you can align the text to the center or right edge of the page, or even align it to the width.
Pdf.Net It also supports writing text in complex scripts, which guarantees the compatibility of your documents with various languages and writing systems.
The following example shows how to align and place text in different positions within a PDF page:
Полный код
Если вам нужен пример кода или у вас есть вопрос: напишите нам по адресу support@sautinsoft.ru или спросите в онлайн-чате (правый нижний угол этой страницы) или используйте форму ниже: