ByteScout Premium Suite - VBScript - Create tiling patterns drawings in pdf with pdf sdk - ByteScout

ByteScout Premium Suite – VBScript – Create tiling patterns drawings in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Create tiling patterns drawings in pdf with pdf sdk

How to create tiling patterns drawings in pdf with pdf sdk in VBScript and ByteScout Premium Suite

Learn to create tiling patterns drawings in pdf with pdf sdk in VBScript

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

The SDK samples given below describe how to quickly make your application do create tiling patterns drawings in pdf with pdf sdk in VBScript with the help of ByteScout Premium Suite. Just copy and paste the code into your VBScript application’s code and follow the instructions. 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.

ByteScout provides the free trial version of ByteScout Premium Suite along with the documentation and source code samples.

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

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

TilingPatterns.vbs
      
' This example demonstrates how to use tiling patterns. ' 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 blueColor = comHelpers.CreateColorRGB(0, 0, 255) Set grayColor = comHelpers.CreateColorGray(128) Set blackColor = comHelpers.CreateColorGray(0) ' Create tiling brush and paint on it Set tilingBrush1 = comHelpers.CreateUncoloredTilingBrush(10, 12) Set brushCanvas = tilingBrush1.Canvas brushCanvas.DrawCircle comHelpers.CreateSolidPen((blueColor), 1), 0, 6, 6 tilingBrush1.Color = blueColor ' Create second tiling brush and paint on it using the first brush Set tilingBrush2 = comHelpers.CreateColoredTilingBrush(70, 50) Set brushCanvas = tilingBrush2.Canvas brushCanvas.DrawEllipse_3 comHelpers.CreateSolidPen((grayColor), 1), (tilingBrush1), 0, 0, 60, 20 ' Draw rectangle and fill it with combined tiling brush page1.Canvas.DrawRectangle_3 comHelpers.CreateSolidPen((blackColor), 1), (tilingBrush2), 100, 100, 400, 400 ' 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