Solved

ABCpdf7 Psssword Protect Files?

Posted on 2010-09-03
1
496 Views
Last Modified: 2013-11-10
Hello,
I'm using ABCpdf7 to render an html page to pdf. The process saves the rendered pdf file to the server. I need to know if there is an ABCpdf7 method I can use that will password protect these pdf files programmatically. The web site is a bit old - using asp (vbscript). Below is the code used to render and save the html page to pdf.

Set theDoc = Server.CreateObject("ABCpdf7.Doc")
theDoc.HtmlOptions.Timeout = 4000
theURL = "my url webpage to render"
theID = theDoc.AddImageUrl(theURL,True,,True)
Do
                     If Not theDoc.Chainable(theID) Then Exit Do
      theDoc.Page = theDoc.AddPage()
      theID = theDoc.AddImageToChain(theID)
Loop
For i = 1 To theDoc.PageCount
      theDoc.PageNumber = i
      theDoc.Flatten
Next
theDoc.Save "my pdf folder/filename.pdf"
0
Comment
Question by:NELIXINC
1 Comment
 

Accepted Solution

by:
NELIXINC earned 0 total points
ID: 33597075
I found the solution.

theDoc.Encryption.Type = 2
theDoc.Encryption.CanCopy = false
theDoc.Encryption.Password = "owner"

http://www.websupergoo.com/helppdf7/default.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question