ByteScout PDF SDK - VBScript and VB6 - Sign PDF Document - ByteScout

ByteScout PDF SDK – VBScript and VB6 – Sign PDF Document

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Sign PDF Document

How to sign PDF document in VBScript and VB6 and ByteScout PDF SDK

How to code in VBScript and VB6 to sign PDF document with this step-by-step tutorial

We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout PDF SDK is the pdf library that can create, update and modify PDF files. Supports text with fonts and style selections, layers, form fields, drawing lines and objects, automatic tables, images. Can be used to create and fill pdf forms and you can use it to sign PDF document with VBScript and VB6.

This code snippet below for ByteScout PDF SDK works best when you need to quickly sign PDF document in your VBScript and VB6 application. In your VBScript and VB6 project or application you may simply copy & paste the code and then run your app! Enjoy writing a code with ready-to-use sample codes in VBScript and VB6.

Trial version of ByteScout PDF SDK is available for free. Source code samples are included to help you with your VBScript and VB6 app.

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

' This example demonstrates how to digitally sign 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 sample page content Set brush = comHelpers.CreateSolidBrush(comHelpers.CreateColorGray(0)) Set font = comHelpers.CreateSystemFont("Arial", 24) Set stringFormat = comHelpers.CreateStringFormat() stringFormat.HorizontalAlign = comHelpers.HORIZONTALALIGN_CENTER page1.Canvas.DrawString_7 "Signature Test", (font), (brush), 0, 50, page1.Width, 100, (stringFormat) ' Signing parameters certficateFile = "demo_certificate.pfx" certficatePassword = "123" ' Optional parameters signingReason = "Approval" contactName = "John Smith" location = "Corporate HQ" ' Invisible signature 'pdfDocument.Sign certficateFile, certficatePassword ' Visible signature pdfDocument.Sign_2 certficateFile, certficatePassword, 400, 50, 150, 100, signingReason, contactName, location ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer application 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)



Get 60 Day Free Trial or Visit ByteScout PDF SDK page

Explore ByteScout PDF SDK documentation


Sign Up for free Web API key

Explore Web API Documentation