ByteScout Premium Suite - VBScript - Load existing pdf document with pdf sdk - ByteScout

ByteScout Premium Suite – VBScript – Load existing pdf document with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Load existing pdf document with pdf sdk

How to load existing pdf document with pdf sdk in VBScript and ByteScout Premium Suite

How to write a robust code in VBScript to load existing pdf document with pdf sdk with this step-by-step tutorial

On this page you will learn from code samples for programming in VBScript.Writing of the code to load existing pdf document with pdf sdk in VBScript can be executed by programmers of any level using ByteScout Premium Suite. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to load existing pdf document with pdf sdk in your VBScript application.

Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VBScript plus the guidelines and the code below will help you quickly learn how to load existing pdf document with pdf sdk. Follow the instructions from scratch to work and copy the VBScript code. If you want to use these VBScript sample examples in one or many applications then they can be used easily.

If you want to try other source code samples then the free trial version of ByteScout Premium Suite is available for download from our website. Just try 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)

LoadDocument.vbs
      
' This example demonstrates how to load and modify an existing document. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" Set comHelpers = pdfDocument.ComHelpers ' Load existing document pdfDocument.Load("sample.pdf") ' Add new page to loaded document Set newPage = comHelpers.CreatePage(comHelpers.PAPERFORMAT_A4) Set timesFont = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_TIMES, 24) Set blackBrush = comHelpers.CreateSolidBrush(comHelpers.CreateColorGray(0)) newPage.Canvas.DrawString "New Page", (timesFont), (blackBrush), 20, 20 pdfDocument.Pages.Add(newPage) ' 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