PDFDoc Scout |
PDFDoc Scout library - Sample
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.OutputFileName = "ProtectionDemo.pdf"
' set output filename for PDF document PDFDoc.ProtectionEnabled = true 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 You can download the source code of this example here: pdfdoscout_protection_options_demo.zip
"Hello, World!" quick start step-by-step tutorials: |
|
|
||