ByteScout PDF SDK - VBScript and VB6 - Set Display Options for PDF - ByteScout

ByteScout PDF SDK – VBScript and VB6 – Set Display Options for PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Set Display Options for PDF

How to set display options for PDF in VBScript and VB6 and ByteScout PDF SDK

This code in VBScript and VB6 shows how to set display options for PDF with this how to tutorial

The code below will help you to implement an VBScript and VB6 app to set display options for PDF. ByteScout PDF SDK 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 set display options for PDF in VBScript and VB6.

This code snippet below for ByteScout PDF SDK works best when you need to quickly set display options for PDF in your VBScript and VB6 application. Follow the instructions from the scratch to work and copy the VBScript and VB6 code. Test VBScript and VB6 sample code examples whether they respond your needs and requirements for the project.

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.

Try it today: Get 60 Day Free Trial or sign up for Web API

DisplayOptions.vbs
      
' This example demonstrates how to set display options for a viewer application. ' 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) ' Set page mode (which panels should be shown at viewing application start) pdfDocument.PageMode = comHelpers.PAGEMODE_THUMBNAIL ' show thumbnails panel ' Show/hide various interface elements pdfDocument.ViewerPreferences.CenterWindow = True pdfDocument.ViewerPreferences.FitWindow = True pdfDocument.ViewerPreferences.HideMenubar = True pdfDocument.ViewerPreferences.HideToolbar = True pdfDocument.ViewerPreferences.HideWindowUI = False ' 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 it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF SDK page

Explore ByteScout PDF SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next