ByteScout PDF SDK - VBScript and VB6 - Add Video Annotation to PDF - ByteScout

ByteScout PDF SDK – VBScript and VB6 – Add Video Annotation to PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Add Video Annotation to PDF

How to add video annotation to PDF in VBScript and VB6 using ByteScout PDF SDK

Write code in VBScript and VB6 to add video annotation to PDF with this step-by-step tutorial

Sample source code below will show you how to cope with a difficult task like add video annotation to PDF in VBScript and VB6. What is ByteScout PDF SDK? It is the library 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 add video annotation to PDF in your VBScript and VB6 application.

The SDK samples like this one below explain how to quickly make your application do add video annotation to PDF in VBScript and VB6 with the help of ByteScout PDF SDK. Follow the instructions from the scratch to work and copy the VBScript and VB6 code. Enjoy writing a code with ready-to-use sample VBScript and VB6 codes.

You can download free trial version of ByteScout PDF SDK from our website to see and try many others source code samples for VBScript and VB6.

Try ByteScout PDF SDK today: Get 60 Day Free Trial or sign up for Web API

VideoAnnotation.vbs
      
' This example demonstrates how to add a video to PDF document. ' 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) ' Add video annotation Set movie = comHelpers.CreateMovie("sample.avi") Set movieAnnotation = comHelpers.CreateMovieAnnotation((movie), 20, 20, 320, 240) movieAnnotation.MovieActivation.ShowControls = True page1.Annotations.Add(movieAnnotation) ' 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

Try ByteScout PDF SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout PDF SDK page

Explore ByteScout PDF SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next