ByteScout Premium Suite - VB.NET - Rotate text in pdf with pdf sdk - ByteScout

ByteScout Premium Suite – VB.NET – Rotate text in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Rotate text in pdf with pdf sdk

How to rotate text in pdf with pdf sdk in VB.NET using ByteScout Premium Suite

How to write a robust code in VB.NET to rotate text in pdf with pdf sdk with this step-by-step tutorial

These source code samples are assembled by their programming language and functions they apply. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to rotate text in pdf with pdf sdk using VB.NET.

Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to rotate text in pdf with pdf sdk. Just copy and paste the code into your VB.NET application’s code and follow the instructions. If you want to use these VB.NET sample examples in one or many applications then they can be used easily.

ByteScout Premium Suite 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)

Module1.vb
      
Imports Bytescout.PDF Module Module1 Sub Main() ' Create PDF document Dim document = New Document() document.RegistrationName = "demo" document.RegistrationKey = "demo" ' Create page Dim page = New Page(PaperFormat.A4) ' Add page to document document.Pages.Add(page) Dim canvas = page.Canvas ' Prepare font and brush Dim font = New Bytescout.PDF.Font(StandardFonts.Helvetica, 24) Dim blackBrush = New Bytescout.PDF.SolidBrush() ' Draw simple text canvas.DrawString("Simple text.", font, blackBrush, 50, 100) ' Save canvas state canvas.SaveGraphicsState() ' Move canvas origin (0,0) point to (50,100) canvas.TranslateTransform(50, 100) ' Rotate canvas at 45 deg around of the origin point canvas.RotateTransform(45) canvas.DrawString("Rotated 45", font, blackBrush, 0, 0) ' Rotate another 45 deg canvas.RotateTransform(45) canvas.DrawString("Rotated 90", font, blackBrush, 0, 0) ' Restore canvas state to reset all transformations canvas.RestoreGraphicsState() ' Save document document.Save("result.pdf") ' Open PDF document in default associated application (for demo puprpose) Process.Start("result.pdf") End Sub End Module

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