PDSaveFull and doc encryption

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

  1. #1

    Default PDSaveFull and doc encryption

    Hi there!
    Does anybody know how to know doc will be encrypted?
    Normally, my plugin will save doc with increment, so the doc will keep the changed history.But if user encryped the doc , the doc must be saved with PDSaveFull parameter and my save parameter is "PDSaveIncremental" still.So this cause the save error.I can acquire the encryption state if the doc was saved,but if the doc has not been save i can not acquire the encryption state.

    The essential is if I can acquired the encryption state before the doc saves so i can change my save parameter to avoid save error.

    Anyone can help me?
    Thanks in advance.
    Jasper.
    NoSmoking@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. what's wrong with PDSaveFull in Acrobat 8
      Thanks for all who reply me first! So strange. I'm just open an PDF in Acrobat and close it then crash! I write the following sentence in...
    2. Encryption using X.509
      I have writen a class that uses certificates to encrypt data on my web servers prior to storing it in a database and would like to know if there...
    3. URL Encryption
      Hi, Is there a way to securely ecrypt and decrypte a URL? for e.g encrypting and decrypting using Triple-DES algorithm. Are there any security...
    4. About Encryption ...
      Hi, I'm testing a Rijndael Symetric Algorithm Implementation to encrypt data. With that intention, i made use of code that i saw in...
    5. IDS 9.40.UC2, Encryption
      I try to configure encryption with IDS 9.40.UC2 on an AIX platform and I'm a little bit confused about the different error messages I receive. ...
  3. #2

    Default Re: PDSaveFull and doc encryption

    Check if there is a security handler on the document or not.
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: PDSaveFull and doc encryption

    I have checked it,there is no security handler.
    I also tried other api about security,no one can get the security just be set.
    NoSmoking@adobeforums.com Guest

  5. #4

    Default Re: PDSaveFull and doc encryption

    If there is no security handler, then the document is not encrypted.
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: PDSaveFull and doc encryption

    The security handler was set,but the doc has not been saved yet.After the doc has been saved it will be encrypted.
    In Acrobat 7 I can get the security handler before doc be saved.
    NoSmoking@adobeforums.com Guest

  7. #6

    Default Re: PDSaveFull and doc encryption

    I use the following code to test Acrobat 9,can not get crypt filter name.
    PDDocSetNewCryptHandler (pdDoc, ASAtomFromString("Standard"));
    ASAtom atmFilter = PDDocGetCryptHandler ( pdDoc);
    const char* pFilter = ASAtomGetString(atmFilter);
    NoSmoking@adobeforums.com Guest

  8. #7

    Default Re: PDSaveFull and doc encryption

    Leonard:
    I think the doc should be use full save mode after the doc was set encryption,right?

    If true,then the doc's flag getting from PDDocGetFlags() should be set PDDocRequiresFullSave.But i couldn't get the PDDocRequiresFullSave flag in PDDocWillSaveEx method.I watch the flag in this method, it is PDDocNeedsSave | PDDocIsModified | PDDocOldVersion and if i clear the PDSaveFull flag it will cause a crash.
    I don't know why,can you give me an explanation?
    NoSmoking@adobeforums.com Guest

  9. #8

    Default Re: PDSaveFull and doc encryption

    After you sent encryption, it will do a full save BUT that doesn't mean that the bit is set. When the PDDocSave() call is invoked, a variety of checks are performed and the flags changed inside that call - so that your plugin will never see them.

    But it shouldn't cause a crash
    Leonard_Rosenthol@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