ByteScout Premium Suite - C# - Create right to left text in pdf with pdf sdk - ByteScout

ByteScout Premium Suite – C# – Create right to left text in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Create right to left text in pdf with pdf sdk

How to create right to left text in pdf with pdf sdk in C# and ByteScout Premium Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to create right to left text in pdf with pdf sdk in C#

The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Premium Suite: the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can create right to left text in pdf with pdf sdk in C#.

This prolific sample source code in C# for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to create right to left text in pdf with pdf sdk. Just copy and paste the code into your C# application’s code and follow the instructions. If you want to use these C# sample examples in one or many applications then they can be used easily.

ByteScout Premium Suite free trial version is available on our website. C# and other programming languages are supported.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System.Diagnostics; using Bytescout.PDF; namespace RightToLeftText { /// <summary> /// This example demonstrates how to draw right-to-left text. /// </summary> class Program { static void Main() { // Create new document Document pdfDocument = new Document(); pdfDocument.RegistrationName = "demo"; pdfDocument.RegistrationKey = "demo"; // Add page Page page = new Page(PaperFormat.A4); pdfDocument.Pages.Add(page); Font font = new Font("Arial", 16); Brush brush = new SolidBrush(); // Set right to left text direction StringFormat stringFormat = new StringFormat(); stringFormat.DirectionRightToLeft = true; page.Canvas.DrawString("???? ????? ?????", font, brush, page.Width - 20, 30, stringFormat); page.Canvas.DrawString("???, ?????, ????", font, brush, page.Width - 20, 50, stringFormat); page.Canvas.DrawString("?? ?? ??", font, brush, page.Width - 20, 70, stringFormat); // Save document to file pdfDocument.Save("result.pdf"); // Cleanup pdfDocument.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next