Quickly learn how to use blend mode for drawing in pdf with pdf sdk in VBScript with this sample source code. ByteScout PDF Suite is the bundle that provides six different SDK libraries 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 be applied to use blend mode for drawing in pdf with pdf sdk using VBScript.
Want to save time? You will save a lot of time on writing and testing code as you may just take the VBScript code from ByteScout PDF Suite for use blend mode for drawing in pdf with pdf sdk below and use it in your application. IF you want to implement the functionality, just copy and paste this code for VBScript below into your code editor with your app, compile and run your application. Check VBScript sample code samples to see if they respond to your needs and requirements for the project.
ByteScout PDF Suite free trial version is available on our website. VBScript 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 blend modes - a way how ' intersecting semi-transparent objects will blend on page canvas. ' 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 canvas = page1.Canvas ' Create transparent brushes Set brushRed = comHelpers.CreateSolidBrush(comHelpers.CreateColorRGB(255, 0, 0)) brushRed.Opacity = 50 Set brushGreen = comHelpers.CreateSolidBrush(comHelpers.CreateColorRGB(0, 255, 0)) brushGreen.Opacity = 50 Set brushBlue = comHelpers.CreateSolidBrush(comHelpers.CreateColorRGB(0, 0, 255)) brushBlue.Opacity = 50 ' Normal blending canvas.BlendMode = comHelpers.BLENDMODE_NORMAL canvas.DrawCircle_2 (brushRed), 100, 100, 50 canvas.DrawCircle_2 (brushGreen), 100, 150, 50 canvas.DrawCircle_2 (brushBlue), 150, 100, 50 ' Darken blending canvas.BlendMode = comHelpers.BLENDMODE_DARKEN canvas.DrawCircle_2 (brushRed), 300, 100, 50 canvas.DrawCircle_2 (brushGreen), 300, 150, 50 canvas.DrawCircle_2 (brushBlue), 350, 100, 50 ' Lighten blending canvas.BlendMode = comHelpers.BLENDMODE_LIGHTEN canvas.DrawCircle_2 (brushRed), 100, 300, 50 canvas.DrawCircle_2 (brushGreen), 100, 350, 50 canvas.DrawCircle_2 (brushBlue), 150, 300, 50 ' Color burn blending canvas.BlendMode = comHelpers.BLENDMODE_COLORBURN canvas.DrawCircle_2 (brushRed), 300, 300, 50 canvas.DrawCircle_2 (brushGreen), 300, 350, 50 canvas.DrawCircle_2 (brushBlue), 350, 300, 50 ' 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: