Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
NoSmoking@adobeforums.com #1
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
-
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... -
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... -
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... -
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... -
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. ... -
Leonard_Rosenthol@adobeforums.com #2
Re: PDSaveFull and doc encryption
Check if there is a security handler on the document or not.
Leonard_Rosenthol@adobeforums.com Guest
-
NoSmoking@adobeforums.com #3
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
-
Leonard_Rosenthol@adobeforums.com #4
Re: PDSaveFull and doc encryption
If there is no security handler, then the document is not encrypted.
Leonard_Rosenthol@adobeforums.com Guest
-
NoSmoking@adobeforums.com #5
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
-
NoSmoking@adobeforums.com #6
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
-
NoSmoking@adobeforums.com #7
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
-
Leonard_Rosenthol@adobeforums.com #8
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



Reply With Quote

