Add protection to PDF file with vb.net

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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)?
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139