ABCpdf7 Psssword Protect Files?
Posted on 2010-09-03
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)
If Not theDoc.Chainable(theID) Then Exit Do
theDoc.Page = theDoc.AddPage()
theID = theDoc.AddImageToChain(theID)
For i = 1 To theDoc.PageCount
theDoc.PageNumber = i
theDoc.Save "my pdf folder/filename.pdf"