ByteScout PDF Suite - VBScript - Set markup aannotation in pdf with pdf sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Suite – VBScript – Set markup aannotation in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VBScript – Set markup aannotation in pdf with pdf sdk

How to set markup aannotation in pdf with pdf sdk in VBScript and ByteScout PDF Suite

Learn to set markup aannotation in pdf with pdf sdk in VBScript

The sample source codes on this page shows how to set markup aannotation in pdf with pdf sdk in VBScript. ByteScout PDF Suite: the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can set markup aannotation in pdf with pdf sdk in VBScript.

The SDK samples given below describe how to quickly make your application do set markup aannotation in pdf with pdf sdk in VBScript with the help of ByteScout PDF Suite. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample VBScript codes.

ByteScout PDF 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)

MarkupAnnotation.vbs
      
' This example demonstrates how to add markup annotations. ' 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) ' Draw sample markup annotations Set squareAnnotation = comHelpers.CreateSquareAnnotation(20, 20, 80, 80) squareAnnotation.BackgroundColor = comHelpers.CreateColorRGB(255, 240, 240) squareAnnotation.BorderStyle.Style = comHelpers.BORDERSTYLE_DASHED squareAnnotation.BorderStyle.DashPattern = comHelpers.CreateDashPattern(Array(3.0, 1.0, 3.0), 0) page1.Annotations.Add(squareAnnotation) Set circleAnnotation = comHelpers.CreateCircleAnnotation(120, 20, 80, 80) circleAnnotation.BackgroundColor = comHelpers.CreateColorRGB(240, 250, 240) circleAnnotation.Color = comHelpers.CreateColorRGB(128, 0, 128) circleAnnotation.BorderEffect.Effect = comHelpers.BORDEREFFECT_CLOUDY circleAnnotation.BorderEffect.Intensity = 2 page1.Annotations.Add(circleAnnotation) Set lineAnnotation = comHelpers.CreateLineAnnotation(20, 180, 100, 120) lineAnnotation.Color = comHelpers.CreateColorRGB(255, 0, 0) lineAnnotation.StartLineStyle = comHelpers.LINEENDINGSTYLE_BUTT lineAnnotation.EndLineStyle = comHelpers.LINEENDINGSTYLE_OPENARROW page1.Annotations.Add(lineAnnotation) Set pointsArray = comHelpers.CreatePointsArray(Array(Array(120, 120), Array(130, 130), Array(140, 120), Array(150, 130), Array(160, 120), Array(170, 130))) Set polylineAnnotation = comHelpers.CreatePolylineAnnotation((pointsArray)) polylineAnnotation.BorderStyle.Width = 2 page1.Annotations.Add(polylineAnnotation) ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer app Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next