ByteScout PDF SDK - VB.NET - Use Right To Left Text in PDF - ByteScout

ByteScout PDF SDK – VB.NET – Use Right To Left Text in PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VB.NET – Use Right To Left Text in PDF

How to use right to left text in PDF in VB.NET and ByteScout PDF SDK

How to code in VB.NET to use right to left text in PDF with this step-by-step tutorial

Learn how to use right to left text in PDF in VB.NET with this source code sample. What is ByteScout PDF SDK? It is the SDK for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings. It can help you to use right to left text in PDF in your VB.NET application.

This rich sample source code in VB.NET for ByteScout PDF SDK includes the number of functions and options you should do calling the API to use right to left text in PDF. In your VB.NET project or application you may simply copy & paste the code and then run your app! Detailed tutorials and documentation are available along with installed ByteScout PDF SDK if you’d like to dive deeper into the topic and the details of the API.

ByteScout PDF SDK free trial version is available on our website. VB.NET 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.vb
      
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to draw right-to-left text. ''' </summary> Class Program Shared Sub Main() ' Create new document Dim pdfDocument = New Document() pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Add page Dim page = New Page(PaperFormat.A4) pdfDocument.Pages.Add(page) Dim font = New Font("Arial", 16) Dim brush = New SolidBrush() ' Set right to left text direction Dim 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 document in default PDF viewer app Process.Start("result.pdf") End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK 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 PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next