Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ABCpdf7 Psssword Protect Files?

Posted on 2010-09-03
1
Medium Priority
?
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Make the most of your online learning experience.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Progress

670 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