The sample source codes on this page shows how to set text rotation with pdf sdk in VBScript. Want to set text rotation with pdf sdk in your VBScript app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
This prolific sample source code in VBScript for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to set text rotation with pdf sdk. Just copy and paste the code into your VBScript application’s code and follow the instructions. This basic programming language sample code for VBScript will do the whole work for you to set text rotation with pdf sdk.
ByteScout Premium Suite free trial version is available on our website. VBScript 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)
' This example demonstrates how to draw a text. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" Set comHelpers = pdfDocument.ComHelpers ' Add page Set page1 = comHelpers.CreatePage(comHelpers.PAPERFORMAT_A4) pdfDocument.Pages.Add(page1) ' Prepare font and brush Set font = comHelpers.CreateSystemFont("Arial", 24) Set blackBrush = comHelpers.CreateSolidBrush(comHelpers.CreateColorGray(0)) Set canvas = page1.Canvas ' 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 pdfDocument.Save("result.pdf") ' Save document to file pdfDocument.Save("result.pdf") ' Open PDF document in default associated application (for demo puprpose) Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: