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("ABCpd f7.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(the ID)
Loop
For i = 1 To theDoc.PageCount
theDoc.PageNumber = i
theDoc.Flatten
Next
theDoc.Save "my pdf folder/filename.pdf"
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("ABCpd
theDoc.HtmlOptions.Timeout
theURL = "my url webpage to render"
theID = theDoc.AddImageUrl(theURL,
Do
If Not theDoc.Chainable(theID) Then Exit Do
theDoc.Page = theDoc.AddPage()
theID = theDoc.AddImageToChain(the
Loop
For i = 1 To theDoc.PageCount
theDoc.PageNumber = i
theDoc.Flatten
Next
theDoc.Save "my pdf folder/filename.pdf"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.