Password encrypting a PDF . (security lost)

Hello
i am using the following piece of code to password encrypt a PDF
However . when i copy this PDF to another machine. the PDF is not secured
Please help.. this is very important to me.
char *errorBuf;
    DURING
    CString strPassword = "123456789";
    PDDocSetNewCryptHandler (pdDoc,ASAtomFromString("Standard"));
    StdSecurityData securityData = (StdSecurityData)PDDocNewSecurityData(pdDoc);
    securityData->size = sizeof(StdSecurityDataRec);
    securityData->hasUserPW = false;
    securityData->newOwnerPW = false;
    securityData->hasOwnerPW = true;
    securityData->newOwnerPW = true;
    strcpy_s(securityData->ownerPW, strPassword );
    strcpy_s(securityData->userPW, strPassword );
    securityData->perms = pdPermPrint ;
    securityData->keyLength = 16;
    PDDocSetNewSecurityData (pdDoc, (void*)securityData);
    PDDocSetFlags(pdDoc, PDDocRequiresFullSave);
    HANDLER
        ASGetErrorString (ASGetExceptionErrorCode(), errorBuf, 255);
        AVAlertNote (errorBuf);
    END_HANDLER

Did you remember to save the PDF after running this?  This only sets it up for being secured - you still need to save it.

Similar Messages

  • Password encrypted for PDF payslip

    Hi Experts,
    Currently I am having a request to encrypt password for PDF payslip, which standard SAP does not support.
    I observed that the encryption must be done in OS level (LINUX) after we execute the sending process in SAP and before the employee receives the payslip.
    I found a tool that might be applicable in this case. Please help sharing experience on the follwing tool and verify if this product is reliable:
    http://www.pdflabs.com/tools/pdftk-server/
    Thanks & regards,

    You can write a plug-in (C/C++).

  • How do I Remove password-encryption in a PDF file

    Hello
    Can anyone help me remove the password encryption on a PDF file? I am trying to submit a PDF file to a on demand printer & they di accept the file if it is password-encrypted.
    Thanks

    I have no idea why the printer thinks there is a password? When I opened the security link in Acrobat nothing is selected? So I'm stuck. I also opened the PMD thinking there was some password attached there & I found nothing?

  • How to remove password-encryption in a signed PDF file?

    I can open a password-encryption and digitally signed PDF file using Acrobat X Standard but cannot remove the password protection.
    Can anyone help me remove the password encryption?  The Acrobat only allows to set passsord encryption before adding digital signature to a PDF file.  Can I sign a PDF file and then encrypt it with password?  Thanks.

    Removing the security, if it is possible, would destroy the signature.
    Encrypting a signed PDF would destroy the signature.
    This is because signatures validate the file exactly as it is, and changes to the file break the signature by design. Setting security is a change to the PDF (a big change).

  • Password protecting and encrypting received pdf file

    Hello there,
    how can I password protect (and encrypt) a pdf file that I received from someone else? For example, I may get a copy of my tax return from my accountant that I don't want anyone else to see on my computer or when I back up contents of my computer online.
    I have only Adobe Reader 8 installed on my computer. So I am not writing these pdf files myself - I realize that then I would have full control over the security settings.
    Microsoft Word and Excel files I can password protect. How can I do this for "received pdf files"?
    Thank you for your help.

    You need Acrobat, not Reader.
    Be aware that even then, PDF security is easy to bypass.
    I use a Mac for the most part but isn't there any features in Windows that will allow you to protect folders?

  • How do I password-protect a PDF document that doesn't let me change the security settings?

    I want to password-protect my PDF document (so when I email it, it can only be opened/read by intended recipients as it contains confidential/sensitive information) but when I go into document security, I'm unable to change the Security Method (which is currently set to 'No Security' - not by me).  There's a 'show details' icon but it's grey so I can't click on it.  What can I do to protect this document from being opened by non-intended recipients?

    Ah, yes, I'm using Adobe Reader!  That makes sense.  Thanks so much for your reply.  At the moment, I scan Word documents into my computer and they're automatically converted to PDFs.  If I had Adobe Acrobat on my computer, and scanned in documents, would they open in Reader automatically or could I open them in Acrobat and therefore add password protection?

  • PDF Security password in my Photoshop Elements 10?

    Where do I get my PDF Security Password? I'm trying to open a file from my computer and a window pops up asking for my security password?

    As Mylenium said once a PDF file's been created with a password, it cannot be cracked. You need to check with the creator of the file for its password.
    Thanks
    Nikhil

  • Saving Password for a pdf file in HP Client Security Manager

    Hello,
    I want to save the password for a pdf file in the Password Manager of the HP Client Security Manager Software but the symbol for the entry of the password is not appearing on the top right of the screen. If I use the registered fingerprint a dialog opens where the Client Security Manager asks which account it should use to login. But i can't add a password for the file. The login for websites is perfectly fine. 
    Do you have any idea how to fix that?
    Is there a way to manually enter password for files?
    Thanks in advance.

    Thanks for the information.
    Suggest you to try uninstall and re-install the latest version which is - 8.3.3.1762. The direct link is:
    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5405363&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_129972_1%257CswEnvOID%253D4060%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
    If this does not fix, then suggest you to log a call with technical support.
    Please do post any progress on this.

  • Photoshop 9 PDF Security password

    I have Photoshop 9 CS2 and it prompts for a PDF Security Password prompt on files I can open on other computers without a password.  I have forwarded the file to another (3rd) computer which opens it without prompting for a security password.  The file creator did not put a password on the file.  Any ideas what the fix is for this?  I tried a password removal program which states the files do not have passwords on them.
    Thanks.

    As Mylenium said once a PDF file's been created with a password, it cannot be cracked. You need to check with the creator of the file for its password.
    Thanks
    Nikhil

  • PDF Security... yet another inquiry

    I'm not so much concerned with the content of the form I'm creating but with the underlying javascript used in creating the dynamic functionality of this product.
    I've been researching security of PDF's, and I'm a bit worried. PDF Locker, Elcomsoft PDF Recovery Software, code obfuscators.... the list of possibilities goes on and on.
    It seems that my intellectual property is certainly going to be easy-pickin's for anyone with a modicum of software knowledge and more than passive curiosity.
    It also seems that top level security of a PDF document is easily broken. But what about the next level, the PDF infrastructure? Is that secure?
    Graham
    PS. Please don't sugar coat it... if it's relatively easy to access, I'd like to know.

    There are three ways to encrypt (secure) PDF documents and forms.  Here is a high level view of the differences...
    1) Password based encryption (requires Acrobat, OR Designer OR LiveCycle ES to be applied to the document)
    Not very secure, there are tools available on the internet that can crack password encryption
    “Global” permissions, there is no way to assign different permission to different users
    2) Encrypt with Certificates (requires Acrobat, OR LiveCycle ES to be applied to the document)
    Encrypt for individual users
    No support for “Groups”
    Access to each user’s public key that you will be encrypting the document for is required
    Protection is not dynamic
    If permission changes are required the source must be re-encrypted
    No way to revoke documents
    Need a PKI, or some source of Digital Certificates
    Certificates must have “Encryption” Key Usage2)
    3)  LiveCycle Rights Management ES (requires Acrobat, AND LiveCycle Rights Management ES to be applied to the document)
    Encrypt for individual users and\or Groups
    Protection is dynamic (controlled from server)
    If permission changes are required the source need not  be re-encrypted, thee changes can be made to the policy on the server
    Protected documents can be revoked
    Regards
    Steve

  • Password Protection for PDF

    Dear Gurus ,
    I have come across the situation in which I want to converted PDF to be password protected .
    I have converted the smartform into PDF using OTF and sending as a mail .
    But now I want to add the Functionality of adding the Password how to Proceed for this .
    for converting PDF I am using the Funtion Modukle  :
    CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
         max_linewidth               = 132
    *     ARCHIVE_INDEX               = ' '
    *     COPYNUMBER                  = 0
    *     ASCII_BIDI_VIS2LOG          = ' '
    *     PDF_DELETE_OTFTAB           = ' '
       IMPORTING
         BIN_FILESIZE                = v_len_in
    *     BIN_FILE                    =
        TABLES
          otf                         = it_otf
          lines                       = it_lines.
    How to Make this Converted PDF password protected ?
    I cant use ADOBE life cycle Designer for this .  Please help
    Thanks & Regards ,
    Aryan

    you will have to take the help of Professional Pdf editind tools such as Nova pdf or the Full version of Adobe Acrobat i.e. Acrobat Professional ..
    also check the links below ..
    [LINK|http://techblissonline.com/how-to-password-protect-pdf-documents-or-files/]
    and quote from the same
    How to password protect PDF documents or files?
    Open the PDF file in Acrobat
    Select File > Document Security from the menu
    Got to the u201CSecurity Optionsu201D drop-down and select u201CAcrobat Standard Securityu201D
    Find the box labelled u201CPassword required to open documentu201D and place a check mark against it.
    Edit or type the password
    You can also add a password requirement for changing permissions or password.To add a a required password check the box against u201Crequired password to change permissions or passwordu201D and enter the password. However note that this password must be different from the one that you entered for securing or password protecting the PDF file.
    If you want your PDF document to be password accessible to users with previous versions of Acrobat Reader (versions earlier than 5.0), do not change the 40-bit encryption setting. However if your users or audience will be using version 5 or later versions of the Reader (or the full Acrobat program) then you may use 128-bit encryption.
    Best Re

  • PDF Security: A Question

    I am searching for a 3rd party company that provides pdf password protection - pdf encryption. I am aware: nothing is hacker-proof. I just want a deterrent. I don't want a high end DRM company. I'm hoping to find a 3rd part product that fulfills the following criteria. Anyone have any suggestions? Thank you in advance.
    A. GENERAL IDEA: password protection that ties pdf file to the individual computer and prevents them from illegal sharing. (I don't care if they modify or print)
    B. User inputs password only once (unlike Adobe's), the first time he opens pdf file.
    C. User cannot duplicate file and place on another computer and/or place on a CD or other removable medium (and still have it function).
    D. Work across PC and MAC platforms
    E. Different password generated for each document
    F. Password protection works within the PAYLOADZ/PAYPAL environment (PAYLOADZ is a company that downloads a copy of the pdf file (original sits on a server), to user, as soon as Pay Pal confirms payment.)

    Passwords tend to be forgotten easily and are a support nightmare and if licensing control is not used then there is nothing to stop users sharing them.
    We looked at several DRM companies as part of a consultancy project for a client. FileOpen was complex and their history of security incidences looked rather shady. We talked to a couple of their customers who had endless problems when Adobe and Microsoft updated their software and after trying out the software ourselves gave it a bigs thumbs-down. We also looked at Armjisoft (don't think they actually have any customers) and their 'security' seemed rather dubious with a plug-out design, and LockLizard who use their own viewer. Most of the other companies we looked at did use passwords but did not prevent them from being shared - so there was no point in pursuing these further. We ended up recommending LockLizard to our customer based on feedback from their customers and our own use of the software - also it did everything our client required. Their pricing starts at $2495 which is a lot cheaper than some of high DRM companies who tend to specialize in document collaboration with PDF security on the side. However If you have $65,000 to spare you could always look at Adobe Policy Server. After all, this is an Adobe forum!

  • Password protection to PDF file in SAP

    Hi All,
    Need a help from ABAPer, we have a tax projection sheet which is mailed to every employee based on his Email ID maintained in IT - 0105 (Communications). However, thre was a small bug in the report due to which the Tax sheet was mailed to wrong emp no. which is corrected now.
    I want to add a new logic in which i will give Password for each pdf which is sent to the employee in which without the passwrd the employee cannot open the file.
    The passwrd will be EMP ID@DDMMYYYY is there anyone who have written this kind of code, then please share the code with me...
    Thanks in advance.
    Regards,
    Prasad Lad

    Hi,
    Check this link
    pdf with password encryption
    regards

  • Can I add a password to a PDF portfolio created from multiple emails?

    Hi,
    Does anyone know how I can add a password to a PDF portfolio that I created by converting several emails into a PDF?
    Thanks in advance for your invaluable help!
    -Matt

    When viewing a Portfolio the classic Tools Pane is not visible, so you cannot apply security in the usual way.
    Instead, open the properties dialog (menu > File > Portfolio Properties) and select the Security tab. Change the dropdown field to "password security" and the dialog box will appear to enter the permissions information.

  • Trouble With Password Encryption in Acrobat 8.1 Professional

    Can someone suggest a solution or are you experiencing the same problem?  Each time I g
    o to password encrypt, I get an erro message saying that 8.1 encountered an error and is closing.
    This happens several seconds after clicking on the passord radio button.

    Not that silly; but you ideally shouldn't be trying. Although there are some rudimentary (and sometimes unpredictable) editing tools in Acrobat, (I presume you are trying with the TouchUp Object tool as well as the TouchUp Text ?) much better to get it right in the source application and think of the pdf as what it basically is...a print.
    For whatever reason, v5 could edit text positioning rather more easily than the later versions.

Maybe you are looking for

  • Data guard synchronization after link down b/w primary and physical standby

    Hi All, I have configured data guard on oracle 11gr2 db. Normally switchover between my primary and physical standby happens smoothly and the Apply lag would be zero. Recently We had to test a scenario when the network link between Primary and Physic

  • Error in import in phase TOOLIMPD3

    Hi all, I am posting with a problem I have just encountered upgrading my Dev 46C system to ECC. I didn't encounter this upgrading my sandbox. During the prepare phases, I encounter an error in the phase TOOLIMPD3: ERROR: tp terminated with error stat

  • Memory leak in a client using EJBs deployed in a Bea Weblogic 10.0.0 cluste

    Hi all, We are having a memory leak in a client using stateless EJBs deployed in cluster. The client is a Tomcat 6.0.18 with java 6 but it is reproduced using Tomcat 5 with java 5. The client is calling a Weblogic Server 10.0 making calls to an EJB d

  • SQL Developer 3.x Disconnection Problem

    We are running SQL Developer 3.1 on Windows 7 64 and connecting to a 11.2.0.3 database. The user's can connect fine, then they can click through and see their tables. Once they click on the tables to see the columns or data, we immediately get discon

  • Join two xmltype table using Xquery

    I am wondering how to join two xmltype tables in xml db database. both tables are schema based object-relational tables. these are the examples: academicProgram table contain batch of academicprogram.xml entries <academicProgram> <listOfCourse> <cour