Certificate signing and excryption - some changes still allowed...

I am trying to batch certify and encrypt PDFs.  The PDF should only allow the user to print the document; however, after the JS runs the user can still extract pages and copy content; all other permissions are behaving as expected.  Is another property missing that will trigger these misbehaviours to operate properly?
Also how does one use and read the cLegalAttest property?  I have specificed this property, but I can not find the string in the signature panel.
Thank you for your help!
var certPath = "/C/Documents and Settings/rrh/Desktop/Sample/";
var curDoc = this;
var proCertPW = curDoc.info.cliId
var proCertSig = curDoc.info.cliId + ".pfx";
var proCertFile = curDoc.info.cliId + ".cer";
var cliCertFile = curDoc.info.cliId + ".cer";
var solCert = security.importFromFile({cType:"Certificate", cDIPath:certPath + proCertFile});
var cliCert = security.importFromFile({cType:"Certificate", cDIPath:certPath + cliCertFile});
var oEntity = [{certificates:cliCert, defaultEncryptCert:proCert}];
curDoc.encryptForRecipients(
    oGroups:
            userEntities: oEntity,
            permissions:
                allowAll: false,
                allowAccessibility: false,
                allowContentExtraction: false,
                allowChanges: "none",
                allowPrinting: "lowQuality"
    bMetaData:true
// Certify the Document without visible signature
var f = curDoc.addField({cName:"CertifyDocument", cFieldType:"signature", nPageNum:0, oCoords:[0,0,0,0]});
f.display = display.hidden;
var s = {name: "My Company",
         location: "Monte Carlo, Monaco",
         reason: "I created this document specfically for " + curDoc.info.ClientName,
         contactInfo: "[email protected]",
         password: proCertPW,
         mdp: "allowNone" };
var sh = security.getHandler("Adobe.PPKLite");
sh.login(proCertPW, certPath + proCertSig);
sh.signInvisible = true;
sh.signAuthor = true;
f.signatureSign(
    oSig: sh,
    oInfo: s,
    bUI: false,
    cLegalAttest:"Do not distribute this document."
ppklite.logout();

Do you still have your LC environment setup?
No...   ran out of time. Where can I find 26-hour days?
To disable Copy Content and Page Extraction you need to set the MDP
(Modification Detection and Prevention) properties of you SignatureInfo
object appropritely and make sure you are using a certificate for
signing that is allowed to perform document certification and not
simply document approval.  Set your SignatureInfo.mdp value to
"allowNone".  This is the same as doing "Certify with Visible
Signature" from the "Sign & Certify" menu as opposed to simply
choosing "Sign Document", which will leave copy & extraction
allowed as well.  When the document is certified, copy & extraction
are disabled.
I verified my code, and as far as i can tell, MDP is set properly.  I also tested without the encryption, but content copying (both) and page extraction are still allowed.  I double checked the Digital ID (pfx) that I made with Microsoft Certificate Services (via server); it was only for code signing.  I created a "temporary" digital ID though Acrobat and it has permissions for <all>.  The tickmarks for encryption, signing, etc in security settings were also verified.
var strcDIPath = curDoc.path.replace(".pdf", "");
var f = curDoc.addField({cName:"CertifyDocument", cFieldType:"signature", nPageNum:0, oCoords:[0,0,0,0]});
f.display = display.hidden;
var sh = security.getHandler("Adobe.PPKLite");
sh.login(solCertPW, certPath + solCertSig);
sh.signInvisible = true;
sh.signAuthor = true;
var s = {name: "My Company",
         location: "Monte Carlo, Monaco",
         reason: "This document created specfically for " + curDoc.info.preparedFor + ".",
         contactInfo: "[email protected]",
         password: solCertPW,
         mdp: "allowNone"
f.signatureSign(
    oSig: sh,
    oInfo: s,
    cDIPath: strcDIPath + " (Certified).pdf",
    bUI: false,
    cLegalAttest: "Do not distribute this document."
sh.logout()
I was able to get the permissions needed by using P/W secuirty then certifying the document.
Ok, with cLegalAttest, this also has to do with an MDP certification.
When you apply an MDP signature to certify the document, it is scanned
for legal warnings.
I suppose I have no legal warnings in my document.  Maybe i could use this Godfather reference as a warning (it is work safe)?
http://www.foreignpolicy.com/images/090419_horse.jpg
Thank you for all your help and consideration.  I have been using "js_api_reference 8.pdf"; does Adobe have a resource other than this document for PDF security and code?  (I also have "acrobat_reader_security_9x.pdf")

Similar Messages

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • HT201302 dear sirs: can i  access my backup icloud photos from windows 8 by chrome and make some changes in it

    dear sirs:
    can i  access my backup icloud photos from windows 8 by chrome and make some changes in it
    if there any solution...
    Thanks

    Are you talking about an iCloud backup? If so, no, an iCloud backup cannot be viewd, it can only be restored to another iOS device.

  • Error 70001 when changing DVD region (changes still allowed)

    I still have allowable DVD region changes left on DVD player, but when I try to apply a region change, error message 70001 appears.
    Does anybody know how to solve this problem? I've looked on various online forums and tried using VLC - but this doesn't work - and used MacTheRipper to no avail either.

    Are you sure the DVD is region 1 ONLY? You can't always trust the label. I have a three DVD boxed set that says region 1. One of the DVDs is multiple region.
    <http://docs.info.apple.com/article.html?artnum=31304>

  • Made some changes to my pending order by phone

    I called and made some changes to a pending order I had made online but the changes do not reflect on my verizon account. The pending order on my account still shows the original order. Should I wait a little longer for the changes to be reflected, as the installation of the service is on the 29th? or should I call to confirm that the changes have been made?
    Solved!
    Go to Solution.

    I would suggest you call, confirm the changes have been made, and ask to have an email sent showing the changes in place.

  • Editing a signed and stamped document

    I have sealed an electronic set of design plans (PDF file) by placing my electronic stamp and signature into the PDF file. I then protected the file (to protect my PE stamp and signature). This protection also restricts future users from adding notes and comments to this PDF file. The client has asked us to remove the protection so that bidders can add notes to their plan sets. Is there a way to keep the integrity of my PE stamp and signature protected, but still allow future users to add notes and comments?

    Is it a stamp of your signature or a digital signature? If it's a stamp, you can simply flatten the document (annotations) and don't restrict commenting. You can flatten annotations several ways with Acrobat, but the following free JavaScript-based tool makes it easy: http://www.uvsar.com/projects/acrobat/flattener/

  • My classic video ipod won't switch back to regular video mode after using it on an elliptical. The port still allows me to charge and works on the elliptical and treadmill but it will no longer change modes to allow me to watch my shows on the ipod screen

    My classic video ipod won't switch back to regular video mode after using it on an elliptical. The port still allows me to charge and works on the elliptical and treadmill but it will no longer change modes to allow me to watch my shows on the ipod screen

    From the iPod's Main Menu choose Videos -> Settings and make sure TV Out is set to Off.
    Otherwise, try a hard reset as well.  To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    B-rock

  • My friend changed the language on my phone I then changed it back to english, and for some apps I download it is in a different language, i have tried restoring my phone and it is still doing this, know how to help?

    My friend changed the language on my phone I then changed it back to english, and for some apps I download it is in a different language, i have tried restoring my phone and it is still doing this, know how to help? It only seems to happen for some apps and I have spent a long time trying to fix it.

    Oops...my phone is running 6.0.1

  • Maybe its just me but verizon had my rebate for a month and some change and  still haven gotten it i got this contract on july 10, and my samsunsung galaxy s4 does nothing but shut off on me constatntly and they wont even help..any suggestions because im

    maybe its just me but verizon had my rebate for a month and some change and  still haven gotten it i got this contract on july 10, and my samsunsung galaxy s4 does nothing but shut off on me constatntly and they wont even help..any suggestions because im looking into a lawsuit now so aggravating..my phone is def on a blank sceen right now

    JCLouis, 
    We saw your story and are very worried about what we read! This isn't like us at all and we are here to help sort it all out. We recommend calling the Rebate Center to check on the status. Their number is 1-800-457-0864.
    We can help you right here with your phone! How often does it turn off? Is it just that the screen goes black or does it completely power down? Also, does it start back up by itself if it does power down?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • I changed my Apple ID and now I can't sign into iMessages because it still has my old ID. How do I change that also?

    I changed my Apple ID today and now I can't sign into iMessage because it still shows my old ID. How can I change this??

    Did you purchase Apple Care? If you did, you still have access to Apple Support.  If not, go to your Apple Store and let them help you get it set up correctly.  I'm sure it's something simple we're missing.  Good Luck. 
    Do remember one thing.  iMessage on iPad only works with other iOS devices.  This means you can only text to people who:
    1.  Have an iPhone, iPad, or iPod Touch
    2.  And they have upgraded to iOS 5 or higher

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • Cursor has changed to a plus sign and doesn't work properly

    I recently plugged my Late 2012 MBP 13" into an Epson projector (using an Apple serial port converter) and my cursor changed from the normal shape to a '+' sign.  Also, there is occasionally some horizontal lines on the screen about 1" (2cm) away from the plus sign.  I wouldn't mind the shape except it's now very inaccurate and difficult to use.  Does anyone know how to fix this type of issue?  Appreciate any help you can offer.

    Cleared everything, several time over several days, no change.
    Still have not diagnosed the problem and I have made a lot of changes, including re-loading M.FireFox 4.0.1 with ATT Yahoo vers. 1.8
    It sometimes appears that the sign-in times out, although I tried signing in for 2 weeks and also 1 day. ATT Yahoo has a sign-in seal one can setup and use. It is fine and works only that one day or until one signs out, than it is history.
    Clarence

  • Trying to login to software program known as hamspher (vip simulated ham radio,  it downloaded the program but it will not allow me to login with call sign and pin.  it has to be opened with what they call a jar file.  how do i do this?

    trying to login to software program known as hamspher (vip simulated ham radio,  it downloaded the program but it will not allow me to login with call sign and pin.  it has to be opened with what they call a jar file.  how do i do this?

    This is compatible with Mac? Especially Snow Leopard (if that is what you'e running)?
    Have you considered posting your question in their forums?
    Here is some information re. the jar file:
    http://ostermiller.org/opening_jar_files.html

  • My apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    my apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    You change the name of your ID at https://appleid.apple.com.  See http://support.apple.com/kb/HE40.

  • I have changed my email address and changed my Apple ID. However iCloud on my ipad and an ipad mini still shows my old email address. How can I change my iCloud email address?

    I have changed my email address and changed my Apple ID. However iCloud on my ipad and an ipad mini still shows my old email address. How can I change my iCloud email address?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

Maybe you are looking for