Learn how to create tiling patterns drawings in PDF in VBScript and VB6 with this source code sample. ByteScout PDF SDK can create tiling patterns drawings in PDF. It can be used from VBScript and VB6. 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.
This rich sample source code in VBScript and VB6 for ByteScout PDF SDK includes the number of functions and options you should do calling the API to create tiling patterns drawings in PDF. This VBScript and VB6 sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Further enhancement of the code will make it more vigorous.
ByteScout PDF SDK free trial version is available on our website. VBScript and VB6 and other programming languages are supported.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
' 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
60 Day Free Trial or Visit ByteScout PDF SDK Home Page
Explore ByteScout PDF SDK Documentation
Explore Samples
Sign Up for ByteScout PDF SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF SDK Home Page
Explore ByteScout PDF SDK Documentation
Explore Samples
Sign Up for ByteScout PDF SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: