Home
Suggestion or Comment?

PDFDoc Scout

PDFDoc Scout screenshot (click to enlarge)


Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  TESTIMONIALS   |  NEWS  | 

PDFDoc Scout library - Sample

Download Free Trial See Licensing Options More Information

Quick Guide: How to create PDF animation document from VBScript
"Hello, World!"example

You can download the source code of this example here: pdfdocscout_asp.zip

PDFDoc Scout library can be used in scripting languages that support ActiveX/COM objects: Javascript, VBScript, ASP and ASP.NET scripted languages. This page will show how create the PDF document using VBScript and PDFDoc Scout library.

Windows 98/2000/ME/XP have built-in VBScript support and all files with ".VBS" are recognized as VBScript files and can be executed by system.
 
1) Install PDFDoc Scout library on your computer
 
2) Run Notepad
 
3) To create PDF animation document in VBScript we have to write a very simple script:

Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") ' create PDFDoc object
PDFDoc.InitLibrary "demo", "demo" ' initialize library

PDFDoc.OutputFileName = "HelloWorld.pdf" ' set output filename for PDF document
PDFDoc.AutoOpenGeneratedPDF = true ' automatically open generated PDF document in default PDF viewer application

PDFDoc.BeginDocument ' starts PDF document generation

' add text to current page - draw text at (100,100) and rotate at 15 degrees
PDFDoc.Page.AddText "Hello, World!", 100, 100, 15

PDFDoc.EndDocument ' close pdf document generation

' disconnect from library
Set PDFDoc = Nothing

Feel free to copy code from this page, paste into the notepad and save  as a "HelloWorld.VBS":
 
4) Double-click "HelloWorld.VBS" file from Explorer or from another file manager and script will be executed.
 
You can view generated PDF file (.PDF) using Internet Explorer or another application that is capable of displaying  PDF documents.
 
PDF document created using VBScript and PDFDoc Scout
 
 
You can download the source code of this example here: swfscout_asp.zip
Download Free Trial See Licensing Options More Information


See also: Bytescout.PDF - native .NET library to write/read/sign/
modify/merge/split PDF documents (but no HTML2PDF support)



On-line documentation (HTML format)


"Hello, World!" quick start step-by-step tutorials:


HOME  |  CONTACT US

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.