- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
The PDFDoc Scout SDK product has been acquired by Lionsoft company in January, 2011 and not available on our web-site anymore.
NEW: pdf generator for Web Developers: PDF Generator SDK for Javascript: click here to read more details...
For 3rd party C# open-source PDF generation library? Check the blog article: .NET Bear, Do You Know Any Free PDF Generation Libraries For Use In Commercial Applications?
Check our commercial products for PDF format:
PDF Extractor SDK - extract tables, text, structured data from PDF files in your apps
PDF Renderer SDK - render PDF files to PNG, BMP, TIFF images in your apps
PDF To HTML SDK - convert PDF to HTML with images and formatting preserved
How to set watermarks for pages in generated PDF document using PDFDoc Scout
Quick Guide on using PDFDoc Scout library with ClickOnce deployment style in ASP.NET 2 web-sites
You can download the source code of this example here: pdfdocscout_using_watermarks.zip
This example describes how to use watermarking support in PDFDoc Scout library (using HTML2PDF rendering features to produce watermark text):

Option Explicit
Dim PDFDoc, WatermarkIndex, WatermarkPage, i, j
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
PDFDoc.InitLibrary "demo", "demo"
PDFDoc.OutputFilename = "Using_Watermarks.pdf"
PDFDoc.AutoOpenGeneratedPDF = true
PDFDoc.BeginDocument
' create a watermak
WatermarkIndex = PDFDoc.AddWatermark
' access watermark object replicating IPage object interface
Set WatermarkPage = PDFDoc.Watermarks(WatermarkIndex)
' draw a header
PDFDoc.Watermarks(WatermarkIndex).Width = PDFDoc.Page.Width
PDFDoc.Watermarks(WatermarkIndex).Height = PDFDoc.Page.Height
WatermarkPage.AddHTMLBox "This is a <b>header</b> text watermark", 0,0,400,100, false
' draw a footer
WatermarkPage.AddHTMLBox "This is a <b>Footer</b> text watermark", 0, PDFDoc.PageHeight-300,PDFDoc.PageWidth,PDFDoc.PageHeight, false
For I = 0 to 20
PDFDoc.Page.AddHTMLBox "content of #" & CStr(I) & " page goes here", 200, 200, 400,400, true
PDFDoc.AddPage
Next
' now set watermark for all existing pages in PDF document
For I=0 to PDFDoc.PagesCount-1
PDFDoc.Pages(I).WatermarkIndex = WatermarkIndex
Next
PDFDoc.EndDocument ' close PDF document generation
' disconnect from library
Set PDFDoc = Nothing
You can download the source code of this example here: pdfdocscout_using_watermarks.zip
Filed in:
PDFDoc Scout SDK
Tutorials:


