PDFDoc Scout SDK Archives - Page 2 of 2 - ByteScout

PDFDoc Scout SDK

  • Home
  • /
  • PDFDoc Scout SDK
How to draw a circle on the page in PDF doc created with PDFDoc Scout library: Download example source code: pdfdocscout_example_circle.zip (10,6 KB)Screenshot (view produced pdf):  ' create PDFDoc object  Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")  ' initialize library  PDFDoc.InitLibrary "demo", "demo"    ' set output filename for PDF document  PDFDoc.OutputFileName = "pdfdocscout_example_circle.pdf"  ' automatically open generated PDF document in default PDF viewer application  PDFDoc.AutoOpenGeneratedPDF = true  ' starts PDF document generation  PDFDoc.BeginDocument  ' add Circle  PDFDoc.Page.AddCircle 100, 100, 50     ' to make drawn objects visible you should call .Stroke method  PDFDoc.Page.Stroke  ' close pdf document generation  PDFDoc.EndDocument  ' disconnect from library  Set PDFDoc = Nothing Download example source code: pdfdocscout_example_circle.zip (10,6 KB)
How to add checkboxes to the page in PDF created with PDFDoc Scout library: Download example source code: pdfdocscout_example_check_boxes.zip (11,1 KB)Screenshot (view produced pdf):  ' create PDFDoc object  Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")  ' initialize library  PDFDoc.InitLibrary "demo", "demo"    ' set output filename for PDF document  PDFDoc.OutputFileName = "pdfdocscout_example_check_boxes.pdf"  ' automatically open generated PDF document in default PDF viewer application  PDFDoc.AutoOpenGeneratedPDF = true  ' starts PDF document generation  PDFDoc.BeginDocument  ' Add Checkbox's  PDFDoc.Page.AddCheckbox "DemoCheckBoxes", 100, 100, 120, 110  PDFDoc.Page.AddCheckbox "DemoCheckBoxes2", 100, 120, 120, 130  ' close pdf document generation  PDFDoc.EndDocument  ' disconnect from library  Set PDFDoc = NothingDownload example source code: pdfdocscout_example_check_boxes.zip (11,1 KB)
Quick Guide on how to create "Hello, World!" PDF document using Visual C# and PDFDoc Scout library You can download the source code of this example here: pdfdocscout_csharp.zip This page will show how to use Visual C# and PDFDoc Scout library to create "Hello, World!" PDF document (.PDF)  1) Install PDFDoc Scout library on your computer and run Microsoft Visual Studio.NET Go to New menu and click Project... to create new Visual C# project  The New Project Wizard will appear. [...]
How to add buttons to the page in PDF document made with PDFDoc Scout library: Download example source code: pdfdocscout_example_buttons.zip (55,6 KB)Screenshot (view produced pdf):  ' create PDFDoc object  Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")  ' initialize library  PDFDoc.InitLibrary "demo", "demo"    ' set output filename for PDF document  PDFDoc.OutputFileName = "pdfdocscout_example_buttons.pdf"  ' automatically open generated PDF document in default PDF viewer application  PDFDoc.AutoOpenGeneratedPDF = true  ' starts PDF document generation  PDFDoc.BeginDocument  ' add new Buttons  Set demoButton = PDFDoc.Page.AddButton("demoButton", 100, 100, 160, 120)  demoButton.Caption = "Demo Button"  Set demoButton2 = PDFDoc.Page.AddButton("demoButton2", 100, 130, 160, 150)  demoButton2.Caption = "Demo Button 2"  ' close pdf document generation  PDFDoc.EndDocument  ' disconnect from library  Set PDFDoc = Nothing     Download example source code: pdfdocscout_example_buttons.zip (55,6 KB)
Quick Guide on using PDFDoc Scout library with ClickOnce deployment style in ASP.NET 2 web-sitesYou can download the source code of this example here: pdfdocscout_using_watermarks.zipThis example describes how to use watermarking support in PDFDoc Scout library (using HTML2PDF rendering features to produce watermark text):Option ExplicitDim PDFDoc, WatermarkIndex, WatermarkPage, i, j Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")PDFDoc.InitLibrary "demo", "demo" PDFDoc.OutputFilename = "Using_Watermarks.pdf" PDFDoc.AutoOpenGeneratedPDF = truePDFDoc.BeginDocument' create a watermak WatermarkIndex = PDFDoc.AddWatermark ' access watermark object replicating IPage object [...]
Download example source code: pdfdocscout_example_bar_code.zip (11,3 KB)Screenshot (view produced pdf):  ' create PDFDoc object  Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")  ' initialize library  PDFDoc.InitLibrary "demo", "demo"    ' set output filename for PDF document  PDFDoc.OutputFileName = "pdfdocscout_example_bar_code.pdf"  ' automatically open generated PDF document in default PDF viewer application  PDFDoc.AutoOpenGeneratedPDF = true  ' starts PDF document generation  PDFDoc.BeginDocument  ' draw bar code  PDFDoc.Page.AddBarCode 0, 100, 100, 50, 0, 0, "1234567890", True  ' close pdf document generation  PDFDoc.EndDocument  ' disconnect from library  Set PDFDoc = Nothing  Download example source code: pdfdocscout_example_bar_code.zip (11,3 KB)
 You can download the source code of this example here: pdfdocscout_attaching_files.zip This example shows how to attach files to the generated PDF document with PDFDoc Scout libraryAttached files are displayed on "Attachments" tab when you view PDF document in Adobe Reader:' this example demonstrates how to attach file to generated PDF document using PDFDoc Scout Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") ' create PDFDoc object PDFDoc.InitLibrary "demo", "demo" ' initialize libraryPDFDoc.OutputFileName = "AttachedFiles.pdf" ' set output filename for [...]
 "Hello, World!" example You can download the source code of this example here: pdfdocscout_asp_net.zip  This page contains step by step tutorial how to create PDF document in ASP.NET using PDFDoc Scout library.  IMPORTANT NOTE: To use PDFDoc Scout library on web-server you have to have additional "Web License" PDFDoc Scout library is capable of generating of in-memory PDF files so file needn't to be stored as a file on hard drive and can be streamed right into the browser [...]
 "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 [...]
Download example source code: pdfdocscout_example_action_annotation.zip (55,6 KB)Screenshot (view produced pdf): Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") ' create PDFDoc object  PDFDoc.InitLibrary "demo", "demo" ' initialize library     PDFDoc.OutputFileName = "pdfdocscout_example_action_annotation.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 URL Action  Set Action = PDFDoc.AddURLAction ("https://bytescout.com")  ' Add Annotation for URLAction  PDFDoc.Page.AddActionAnnotation 100, 50, 150, 100, Action    ' Add button  Set btnTest = PDFDoc.Page.AddButton ("btnTest", 100, 100, 150, 110)  ' Set button action  btnTest.OnMouseDown = Action     PDFDoc.EndDocument ' close pdf document generation     ' disconnect from library  Set PDFDoc = NothingDownload example source code: pdfdocscout_example_action_annotation.zip (55,6 KB)