PDF Security II

Hello all, I was reading a post about pdf security and the following script, created by Mike Brog, was mentioned. However, I do not know how to modify it to work for me. I am very new to scripting. Some of the elements look familiar to me, but I still do not know what to modify.
I should clarify that I need the script to export a pdf with the security settings already applied.
I have replied to the original post but thought I would get a better response by making a new post.
Thanks Tom
CurrentDoc = app.activeDocument;
CurrentPage = app.activeWindow.activePage.name;
myFile = "VOLX:_DNK1:PROOFWATERMARK2.pdf";
var insertedImages = CurrentDoc.pages.item(CurrentPage).place(myFile);
var myGraphic = CurrentDoc.allGraphics[0];
myGraphic.parent.geometricBounds = ["0p","0p",CurrentDoc.documentPreferences.pageHeight,CurrentDoc.documentPrefere nces.pageWidth]
myGraphic.fit(FitOptions.proportionally)
myGraphic.fit(FitOptions.CENTER_CONTENT)
myGraphic.opacity = 30
with(app.pdfExportPreferences){
cropMarks = false;
registrationMarks = false;
acrobatCompatibility = AcrobatCompatibility.acrobat5;
colorBitmapCompression = BitmapCompression.autoCompression;
colorBitmapQuality = CompressionQuality.low;
colorBitmapSampling = Sampling.bicubicDownsample;
colorBitmapSamplingDPI = 100;
compressionType = PDFCompressionType.compressObjects;
compressTextAndLineArt = true;
cropImagesToFrames = true;
grayscaleBitmapCompression = BitmapCompression.autoCompression;
grayscaleBitmapquality = CompressionQuality.low;
grayscaleBitmapSampling = Sampling.bicubicDownsample;
grayscaleBitmapSamplingDPI = 100;
monochromeBitmapCompression = MonoBitmapCompression.ccit4;
monochromeBitmapSampling = Sampling.bicubicDownsample;
monchromeBitmapSamplingDPI = 300;
optimizePDF = true;
subsetFontsBelow = 100;
useSecurity = true;
viewPDF = true;
disallowPrinting = false;
disallowCopying = true;
disallowChanging = true;
changeSecurityPassword = "XXXXXX"
var myPageName, myFilePath, myFile;
var myDocument = app.activeDocument;
var myDocumentName = myDocument.name;
var myRegExp = new RegExp(":","gi");
var myRegExp2 = new RegExp(".indd","gi");
myPageName = myDocument.name
myPageName = myPageName.replace(myRegExp, "_");
myBaseName = myPageName.replace(myRegExp2, "");
myFilePath = "VOL1:Test PDF Ads:_LOW RES PROOF - WATERMARK:" + myBaseName + ".pdf";
myFile = new File(myFilePath);
CurrentDoc.exportFile(ExportFormat.pdfType, myFile, false)

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

Similar Messages

  • 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

  • The pdf security is not working in Flash Paper

    Is anyone facing a similar problem.
    The pdf security if applied with a passsword to select the
    text & graphics, printing, etc does not work. It selects any
    and every text in flash paper and pdf. Does anyone know how can one
    prevent to copy any text or graphics ...

    I have the same issue. My phone says the files are corrupt and they stay corrupt if I forward then from my phone. It like the phone checks for something in the PDF, when it never did before.

  • Removing PDF Security Settings ??

    Hello;
    1) Out of curiosity, an expert responded earlier to a post in this forum suggesting that one can remove the PDF security settings by using Adobe Acrobat (NOT Adobe Reader).
    Is that true ??
    2) If I distribute a Read-only, password-protected, Blocked PDF file:
    ..a. Can someone with average knowledge of Adobe products easily remove the security settings of the file ??
    ..b. ONLY those with advanced knowledge can do that.  Correct ??
    ..c. Can someone with only the free Adobe Reader unlock the file and disable the password protection ??
    3) I'm sure someone must have posted here or on the internet a step-by-step how-to !!
    Password protection of VBA, Word, Excel, etc. documents are known to be unreliable, and I suppose the same can be said about PDF.
    Any comments ??
    Monir
    PS. If the topic is a bit sensitive, please reply by a PM. Thank you.

    1. Correct. Reader cannot remove security but Acrobat can (if they have the password).
    2.(a): I wouldn't say "average but it can be done quite easily
    (b.) Not really
    (c.)No. Reader cannot remove security
    3. Basically without using some sort of Digital Rights Management, nothing is secure. There are free applications that can remove security and other PDF readers may even ignore it to begin with.
    So if you absolutely need security, studay up on Digital Rights Management and get out the checkbook because it isn't cheap by a long shot.

  • PDF Security Setting in Crystal report

    Hi All,
    I would like to ask, is there anyway for us to change the PDF security setting that created by crystal report?  We ussualy see the security setting in PDF documents settintg.
    Thanks!
    Nico

    You would need to program that step yourself or use a 3rd-party Report Managers listed at http://www.kenhamady.com/bookmarks.html (I know at least one of them provides that functionality).

  • Adding PDF Security attributes while PDF Merge

    Hi,
    I am trying to merge multiple pdf document and want to secure the output using pdf security attributes.
    Is there a way to achieve this while pdf merge ?
    (I am able to do so while generating the pdf using FO Processor but not while merging existing pdf files.)
    Thanks in Adavance
    ~neeraj

    Hi Neeraj
    What API are you using to merge the documents ?
    If you are using PDFDocMerger you can use the setConfig method on the API to set the password.
    Regards, Tim

  • PDF.js removing PDF security

    I am facing similar problems as discussed in the below mentioned forum post
    https://support.mozilla.org/en-US/questions/1014746
    PDF.js is not considering the enabled PDF security. The functionality what i want to achieve is to control the print to file option using tools like CutePDF. If a user tries to print the PDF to a file and PDF is created by setting encryption is opened in Adobe reader, the saved PDF will be blank. But this is not happening in PDF.js and it is saving the content of the PDF. Can this be handled in PDF.js?

    I am hearing you say that you do not want it to print the content and you want the security to create the page blank. It looks like it should handle security according to the bug mentioned. [https://bugzilla.mozilla.org/show_bug.cgi?id=792816#c12]

  • 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!

  • Acrobat Pro 8, PDF security: Is it possible to allow printing, but forbid editing?

    Hello everybody! I have a question concerning the PDF security settings. We are using Adobe Acrobat Professional 8 (CS3) on an Mac OS X 10.4.11 system.
    When creating a PDF, is it possible to...
    ...permit printing AND enable reading aids BUT forbid editing (like copying text)?
    Or can I only either permit all OR forbid all?
    Thank you for your kind help!
    Mats

    Okay, I solved it myself. :-)
    I had set the "PDF compatability" to "1.4". This removes the a.m. option. So now, I have set it to "1.5" (or even another later standard), and can now allow printing AND allow reading aids BUT forbid copying text.
    Thank you!

  • Using pdf-security with FormProcessor blanks out entire PDF

    When I try to set the pdf-security property and its associated properties with the FormProcessor.setConfig API method, the resulting PDF document is completely blank. And no, it's not an issue of my security. When I view the security properties within the document, it says there is no security. Has anyone been able to get this to work with FormProcessor, and if so, HOW???
    Regards,
    KH

    It's rather sad to have to be answering my own post, but for anyone else who might need this info this seems to have worked in my project - at least locally... Although it doesn't appear to be documented, you can use the same properties from the FOProcessor engine with the FormrProcessor engine, and call the FormProcessor.setConfig() method.
    Properties props = new Properties();
    props.setProperty("remove-pdf-fields", "true");
    props.setProperty("pdf-security", "true");
    fProcessor.setConfig(props);

  • 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

  • Printing and Signing PDF Security Questions

    Hi,
    I noticed one of the PDF security features for Acrobat 8.0 is to set the printing permissions between "None", "150 DPI", and "High Resolution". However, when I print between two PDF's with 150 DPI and max resolution, I honestly can barely notice the difference between the two (the 150 DPI is "slightly" worst, i.e. letters are slightly more jaggedly). I was wondering is this normal, as I was hoping the lower setting would make the printout hard to read, not just a "quick-print" (I used a Laser Printer with 1200 DPI). I don't mean to make a big deal out of it, but I personally do not think this a very useful feature from a security standpoint.
    Secondly, I'm having trouble creating signable PDF's. I basically want the file to only allow a user to sign, and nothing else, so I set the "Changes allowed" to just "filling in forms and signing existing signature fields". But doesn't seem to work, because instead I have to set it to allow "any except extracting page". Only then can I sign the PDF, but then this also allows it to be changed (which I don't want). Is there something wrong with what I'm doing? Any help is appreciated!

    It's a very common question, and as Michael says there's not a lot you can do. Even doing the imposition yourself is unlikely to help, as most commercial raster image processors (RIPs - the software which turns your document with its fonts, graphics etc into the pattern of dots needed to physically generate the image on the printing drum) need unencrypted files.
    If the print shop has an ad-hoc workflow which supports encryption (such as printing direct from Acrobat in the way desktop users do), there are plugins for Acrobat to handle the page imposition; but it's not something native to the application and the printer will have to give you very precise directions as to what layout to create. Many print shops won't entertain that idea unless there's an overriding commercial reason, as it's too much hassle for them to deal with errors in the client plates. Worth asking, but I doubt they'll agree to it.
    Given the need to send unsecured files to an external contractor for printing, your "protection" is in the form of the contract, not digital encryption. The former can be settled in court if they break the terms, the latter can be bypassed in ten seconds and you'll probably never know. If the files are truly too sensitive to send to anyone, it's time to get yourself a laser printer - these days the machines many local print shops rely on are in essence a color photocopier, and you can rent them for about the same price.

  • Trying the stop the "Adobe PDF – Security" popup message

    I'm using MS-Access to create multiple PDF reports, occasionally the whole process stops because of the “Adobe PDF – Security” popup message asking to “Select Document Components to Encrypt”.  We do not encrypt any of the PDF documents, and always hit the Cancel button.  It’s a pain when we run reports during the night as the whole process stops waiting for a reply to the encryption message.  Does anyone know how to stop the popup message ???

    You are correct, it is Distiller question.  I moved the question to the Adobe Windows discussion forum.
    Thanks,
    BWilliams

  • PDF Security for passowrd protection of HP Printer stored document

    I am trying to use the XML RTF template PDF Security feature to password protect printed checks so they are stored on the HP printer until the password is entered on the printer. We are sending the PDF directly to the printer (HPLJ3000) where it is being rendered.
    I can send a non-password protected check ok. However when I send a password protected check, nothing happens - no stored job and no print. Using XML 5.6.1. When I publish and open the PDF from the concurrent manager it opens with a password request.

    Many thanks to rainbowlady23 for taking the time to help others! It's people like her that the world needs more of! Thanks again, you're a jewel. 

  • Preset PDF Security Setting

    Hey guys, does anyone here know how to set preset PDF security setting. You can only do this by export option.
    thanks for your help.

    You would need to program that step yourself or use a 3rd-party Report Managers listed at http://www.kenhamady.com/bookmarks.html (I know at least one of them provides that functionality).

Maybe you are looking for