| How to add barcode (made with Bytescout BarCode SDK) into new PDF document generated with PDFDoc Scout ActiveX library
This sample code demonstrates how to insert barcode image into new PDF document which is generated using PDFDoc Scout ActiveX library. PDFDoc Scout ActiveX is capable of generating new PDF documents using EMF, PNG, JPG, BMP images and built in drawing API. Also supports HTML, The barcode image is generated using Bytescout BarCode SDK which is compatible with .NET 1.10, .NET 2.00 and ActiveX (through ActiveX object interfaces support)
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
' create PDFDoc object PDFDoc.OutputFileName = "HelloWorld.pdf" ' set
output filename for PDF document PDFDoc.BeginDocument ' starts PDF document generation ' add text to current page - draw text at (100,100) and
rotate at 15 degrees Set bc = CreateObject("Bytescout.BarCode.Barcode") ' set symbology to Code39 ' set barcode value to encode ' Draw barcode PDFDoc.EndDocument ' close pdf document generation ' disconnect from libraries
Documentation online: view (new window) |
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|