ByteScout Premium Suite - VBScript - Create submit form action in pdf with pdf sdk - ByteScout

ByteScout Premium Suite – VBScript – Create submit form action in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Create submit form action in pdf with pdf sdk

How to create submit form action in pdf with pdf sdk in VBScript with ByteScout Premium Suite

Learn to code in VBScript to create submit form action in pdf with pdf sdk with this step-by-step tutorial

An easy to understand sample source code to learn how to create submit form action in pdf with pdf sdk in VBScript ByteScout Premium Suite can create submit form action in pdf with pdf sdk. It can be applied from VBScript. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

Want to save time? You will save a lot of time on writing and testing code as you may just take the VBScript code from ByteScout Premium Suite for create submit form action in pdf with pdf sdk below and use it in your application. Follow the instructions from scratch to work and copy the VBScript code. Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.

You can download free trial version of ByteScout Premium Suite from our website with this and other source code samples for VBScript.

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

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

SubmitFormAction.vbs
      
' This example demonstrates how to submit or reset form. ' 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 sample form Set timesFont = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_TIMES, 14) Set blackBrush = comHelpers.CreateSolidBrush(comHelpers.CreateColorGray(0)) ' EditBox Set editBox1 = comHelpers.CreateEditBox(20, 20, 100, 25, "editBox1") editBox1.Text = "editBox1" page1.Annotations.Add(editBox1) ' CheckBox Set checkBox1 = comHelpers.CreateCheckBox(20, 60, 15, 15, "checkBox1") page1.Annotations.Add(checkBox1) page1.Canvas.DrawString "CheckBox", (timesFont), (blackBrush), 45, 60 ' Add Submit button Set submitButton = comHelpers.CreatePushButton(20, 120, 80, 25, "buttonSubmit") submitButton.Caption = "Submit" page1.Annotations.Add(submitButton) ' Add action Set submitAction = comHelpers.CreateSubmitFormAction("http://login.live.com") submitAction.SubmitFormat = comHelpers.SUBMITDATAFORMAT_HTML submitAction.SubmitMethod = comHelpers.SUBMITMETHOD_GET submitAction.Fields.Add(editBox1) submitAction.Fields.Add(checkBox1) submitButton.OnActivated = submitAction ' Add Reset button Set resetButton = comHelpers.CreatePushButton(120, 120, 80, 25, "butonReset") resetButton.Caption = "Reset" page1.Annotations.Add(resetButton) ' Add action Set resetAction = comHelpers.CreateResetFormAction() resetAction.Fields.Add(editBox1) resetAction.Fields.Add(checkBox1) resetButton.OnActivated = resetAction ' 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 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