- 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
Tutorial: protecting produced PDF document from printing and copying of content using PDFDoc Scout library
How to protect PDF document generated with PDFDoc Scout from printing and content copying
You can download the source code of this example here: pdfdoscout_protection_options_demo.zip
This example shows how to protect generated PDF document from printing and content copying usingPDFDoc Scout library
Code to convert generate and protect PDF document:
IMPORTANT: set .ProtectionEnabled and other security options before calling .BeginDocument so generated document will be stored with protection while generated
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") ' create PDFDoc object
PDFDoc.InitLibrary "demo", "demo" ' initialize library
PDFDoc.OutputFileName = "ProtectionDemo.pdf" ' set output filename for PDF document
PDFDoc.AutoOpenGeneratedPDF = true ' automatically open generated PDF document in default PDF viewer application
PDFDoc.ProtectionEnabled = true
PDFDoc.ProtectionOptions_AllowCopy = false ' forbid copying of text content
PDFDoc.ProtectionOptions_AllowPrint = false' allow printing
PDFDoc.ProtectionOptions_AllowPrintHiQuality = false ' forbid printing in hi-quality mode
PDFDoc.BeginDocument ' starts PDF document generation
PDFDoc.Page.AddTextBox "Protection demo. Document can not be printed (.ProtectionOptions_AllowPrint = false). This text can not be copied (.ProtectionOptions_AllowCopy = false)", 10, 100, 400, 500,0,0
PDFDoc.EndDocument ' close pdf document generation
' disconnect from library
Set PDFDoc = Nothing
You can download the source code of this example here: pdfdoscout_protection_options_demo.zip
Filed in:
PDFDoc Scout SDK
Tutorials:


