This sample source code below will display you how to create tiling patterns drawings in pdf with pdf sdk in VBScript. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can create tiling patterns drawings in pdf with pdf sdk in VBScript.
These VBScript code samples for VBScript guide developers to speed up coding of the application when using ByteScout PDF Suite. Just copy and paste the code into your VBScript application’s code and follow the instructions. Applying VBScript application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.
If you want to try other source code samples then the free trial version of ByteScout PDF 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)
' 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 Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: