Link to home
Start Free TrialLog in
Avatar of NELIXINC
NELIXINC

asked on

ABCpdf7 Psssword Protect Files?

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"
ASKER CERTIFIED SOLUTION
Avatar of NELIXINC
NELIXINC

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial