Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Michel_Berniquez@adobeforums.com #1
Add protection to PDF file with vb.net
I have an application in vb.net. This application create many PDF files via Crystal Report. The files are merge in one PDF and the result is an invoice. Now I want to add protection to the file with vb.net because anybody can change the file content. I want to restrict edition only (printing and copying is allowed) and I don't want password protection. I can do this manually but Is it possible to program this whitout a third party ?
Michel_Berniquez@adobeforums.com Guest
-
Can't remove password protection of .pdf file
I have a .pdf file that is password protected. I did not create it, but I do have the password. I can open the file in Acrobat 5.0 using the... -
avi protection
Hi all I'm developing a project that uses a lot of avi movies. I need to protect these movies. I have seen a CD like this, and all avi files were... -
Windows File Protection
I have received a Windows XP message, but before I comply with it, I need to verify that it is actually a message from Windows and not from some... -
Turning off Windows File Protection Notification in XP Home edition
Does anyone know how to turn off the Windows File Protection Notification in XP Home edition (by editing the Registry or otherwise)? -
Can't open dxr file due to "protection"
I have a dxr file containing images of which I can't make any screenshots (the main program, which uses those files, doesn't display those images in... -
Sanctus_Germanus@adobeforums.com #2
Re: Add protection to PDF file with vb.net
I do not believe that this is currently available in the API.
Sanctus
Sanctus_Germanus@adobeforums.com Guest
-
Rick_Nesser@adobeforums.com #3
Re: Add protection to PDF file with vb.net
Hello,
I also am developing a VB .NET application using the Adobe Acrobat 6.0 API. The application prepares HTML reports and converts them to PDF files on demand. I also want to set the security to restrict copying from these PDF files. The SDK documentation does not describe how to do it, so maybe it isn't part of the API. However, there are numerous third-party programs you can buy to do it. If this is not exposed via the API, how can these third-party products do it?
Rick_Nesser@adobeforums.com Guest
-
PDL@adobeforums.com #4
Re: Add protection to PDF file with vb.net
If this is not exposed via the API, how can these third-party products
do it?
It is exposed by the API, however third-party software won't be using the Acrobat SDK, since it requires a copy of Acrobat be installed in order to run SDK applications (unless you're talking about an Acrobat plug-in in which case they are done with the SDK).
From VB.NET you need to research the PDDoc.GetJSObject method, and then use that to call the JavaScript Doc.encryptUsingPolicy method.
PDL@adobeforums.com Guest
-
Rick_Nesser@adobeforums.com #5
Re: Add protection to PDF file with vb.net
Thanks for your quick response, PDL!
I will look into the documentation about the PDDoc.GetJSObject method and then about the encryptUsingPolicy method. Then I will post what I find out for the benefit of Michel Berniquez.
Rick_Nesser@adobeforums.com Guest
-
Rick_Nesser@adobeforums.com #6
Re: Add protection to PDF file with vb.net
I have found the following documents useful in researching the GetJSObject method "Programming Acrobat JavaScript Using Visual Basic" and "Acrobat JavaScript Scripting Reference".
However, I am confined to Acrobat 6.0. The encryptUsingPolicy method mentioned by PDL was introduced in Acrobat 7.0. so it is not available to me. But, there is a method encryptForRecipients that could be useful.
However, it requires a group of recipients. I want to set the security for all recipients. Does anyone know a way to set the group of recipients to be "all"?
Rick_Nesser@adobeforums.com Guest
-
PDL@adobeforums.com #7
Re: Add protection to PDF file with vb.net
Does anyone know a way to set the group of recipients to be "all"?
Yes. Use a policy instead. This was not available in Acrobat 6.0.
There is no way to use encryptForRecipients to be "all" since it requires a public-key certificate for each recipient it is encrypting for.
PDL@adobeforums.com Guest



Reply With Quote

