ByteScout PDF SDK - VBScript and VB6 - Create PDF Form with Button - ByteScout

ByteScout PDF SDK – VBScript and VB6 – Create PDF Form with Button

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Create PDF Form with Button

How to create PDF form with button in VBScript and VB6 and ByteScout PDF SDK

How to code in VBScript and VB6 to create PDF form with button with this step-by-step tutorial

The documentation is designed to help you to implement the features on your side. ByteScout PDF SDK is the component to help programmers in generating new pdf files, modifying and updating existing pdf documents or pdf forms. Provides support for auto-filling pdf forms, adding text with adjustable font, style, size, font family, new form fields, vector and raster drawings and you can use it to create PDF form with button with VBScript and VB6.

VBScript and VB6 code samples for VBScript and VB6 developers help to speed up coding of your application when using ByteScout PDF SDK. In order to implement the functionality, you should copy and paste this code for VBScript and VB6 below into your code editor with your app, compile and run your application. Code testing will allow the function to be tested and work properly with your data.

Trial version of ByteScout PDF SDK can be downloaded for free from our website. It also includes source code samples for VBScript and VB6 and other programming languages.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Buttons.vbs
      
' This example demonstrates how to create a button and decorate it. ' 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) ' Create a button Set button1 = comHelpers.CreatePushButton(50, 50, 100, 30, "button1") button1.Caption = "Button" ' Decorate the button with various styles button1.BackgroundColor = comHelpers.CreateColorRGB(192, 192, 255) button1.BorderWidth = 2 button1.BorderStyle = comHelpers.BORDERSTYLE_BEVELED button1.BorderColor = comHelpers.CreateColorRGB(0, 0, 128) button1.Font = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_TIMES, 16) button1.FontColor = comHelpers.CreateColorRGB(0, 0, 0) button1.HighlightingMode = comHelpers.PUSHBUTTONHIGHLIGHTINGMODE_OUTLINE ' Add button to the page page1.Annotations.Add(button1) ' 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 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