Edit multiple password-protected PDFs using Photoshop CS5 Javascript scripting.

Good Evening,
Situation: I have a huge stack of PDF files and I'm using Photoshop CS5 to slice out previews and other things automatically, using a self-built javascript. Some (100+) of these PDFs are password-protected. I have the password to these files.
Problem: Every time the script tries to open one of the protected PDFs it will open a popup, stop the whole process and wait for the user to input the password.
Question: Is there a way to add the password to the open command of the app.open(...) function? Or more simply put, can this be fully automated?
What I looked at so far: "PDFOpenOptions", "app.open(...)", the javascript reference("photoshop_cs5_javascript_ref.pdf") in general.
Basic Example code:
var f = new File("path to some password protected PDF");
var d = app.open(f); //this will trigger the password popup
doSomethingWithMyDocument(d);
d.close(SaveOptions.DONOTSAVECHANGES);
Any help would be greatly appreciated. I have access to Photoshop CS6 as well, if that somehow solves the problem.
If I'm looking at a dead-end, feel free to tell me too.

It is possible to do that via Scripting.
If you are unable to create such a Script maybe you should look up the chapter »Creating data-driven graphics« in the documentation.

Similar Messages

  • Open password protected pdf using c

    open password protected pdf using c#...
    we will be providing a pdf path & also its password..
    we need to open it in browser without it asking for password..
    Can this be done.??

    Not unless your budget is in the many tens of thousands of dollars. In effect, no.

  • Password Protected PDF using iTextSharp

    hello
    i create pdf files using iTextSharp in vb.net . 
    i did it but now i need to create these pdf files as password protected and i can't find any method for this,
    how can i create password protect a pdf using iTextSharp ?

    That is better suited to itextsharp support, I don't think it is a vb net issue.
    Edit, here is a sample:
    Imports ITextSharp
    Imports ITextSharp.text
    Imports ITextSharp.text.pdf
    Imports System.IO
    Imports System.Text
    Public Class Form1
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim doc As New Document(ITextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
    doc.AddAuthor("Jerry O'Brien")
    doc.AddCreator("The Creator")
    doc.AddSubject("ITextSharp Sample")
    doc.AddTitle("A treatise on the production of Portable Document Format files")
    Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("D:\sample.pdf", FileMode.Create))
    Dim Upass As String = "MumboJumbo"
    Dim OPass As String = "HeebieJeebie"
    Dim userpass() As Byte = Encoding.ASCII.GetBytes(Upass)
    Dim ownerpass() As Byte = Encoding.ASCII.GetBytes(OPass)
    writer.SetEncryption(userpass, ownerpass, 255, True)
    doc.Open()
    Dim para As New Paragraph("This is my first paragraph")
    Dim pharse As New Phrase("This is my first phrase" & vbNewLine)
    Dim chunk_ As New Chunk("This is my first chunk")
    doc.Add(para)
    doc.Add(pharse)
    doc.Add(chunk_)
    doc.Close()
    End Sub
    End Class
    FYI - I have NO IDEA what the 255 and True mean, I just put something in there that fit.

  • Creating multiple password protected pdfs

    Originally this was posted else where on this site but under advice i have moved it to here
    I have a requirement to produce about 500 pdf documents weelky for distribution within the company and each pdf needs to have its own diffrent password.
    I have at least three ways to make the pdf's,and have got the 500 files produced but i cant see how to change the password between prints
    for your information we are using adobe profesional  8, & distiller and the pdfs are being produced from excel 2003
    Please any help on this would be apreciated,

    I cant use certificate-based encryption becasue its going to 500 departments with constanly varing people and we have no reliable method of mainting a list of who should be in what department. So tha password option is nice and simple if you know the password you can opn the file.
    Any idea where i can get information on writing a plug-in ? a web link would be very helpfull
    Thanks#Spence

  • OBIEE 11g having problems with password protected PDF files.

    I have been able to get an analysis in OBIEE 11g to display PDF files.
    However, some of these documents contain sensitive information and must be secured. Since anyone with access to the file name
    could simply type in the proper path in the browser window, this is unacceptable. In order to try and prevent this, I created a pdf file
    that is protected with a password.
    Opening the file by itself, produces the desired results. The password is requested before the file will open.
    When I open the file through my analysis in OBIEE, Adobe reader activates, but the password is not requested and the file does not open.
    It is as if OBIEE is somehow not sensing that Adobee is asking for a password.
    Does anyone have any experience with this?

    FYI, in case anyone is interested, I found out what is going on.
    I created the original password protected PDF using Microsoft Word. I did this because I do not have a full version of Adobe Acrobat that allows me to create files.
    On a hunch, I found someone that has a full version of Acrobat, and had them create a password protected PDF file. This file worked perfectly.
    Apparently, Word is not strictly adhering to PDF guidelines, and OBIEE senses the differences, resulting in the file not opening properly.
    Something to keep in mind for anyone linking to password protected PDF files in OBIEE.

  • IPad to wireless printer with password protected pdf files?

    I have a iPad 2 connected wirelessly to a HP Photosmart 6520. I usually have no problem printing a variety of file and docs....including pdf files. My friend sent me some password protected PDF files today. I have the password and can open them just fine....but I can't get them to print. It just ignores me (no error message). Any suggestions?

    FYI, in case anyone is interested, I found out what is going on.
    I created the original password protected PDF using Microsoft Word. I did this because I do not have a full version of Adobe Acrobat that allows me to create files.
    On a hunch, I found someone that has a full version of Acrobat, and had them create a password protected PDF file. This file worked perfectly.
    Apparently, Word is not strictly adhering to PDF guidelines, and OBIEE senses the differences, resulting in the file not opening properly.
    Something to keep in mind for anyone linking to password protected PDF files in OBIEE.

  • InDesign Data Merge using password protected PDFs?

    I am trying to print postcards with Data Merge and I've run into a problem. The source files for one of the images are password protected PDFs. They all use the same password, and I do know the password, but InDesign wants me to enter the password every time it processes a record.
    If I'm printing 10,000 postcards, I would have to enter the password 10,000 times to make my merged file!
    Does anyone have any suggestions? Is there a way to enter the password once and, maybe hold down [command + option + control + kitchensink] or whatever, while clicking "OK" to apply that password to all future password dialog boxes? Is there a script I can run that could automatically enter the password?
    The original source PDFs need to keep the password protection, so removing the security en masse isn't an option. Making non-secure copies of all the possible PDFs that could be used seems really unwieldy and would take up a lot of network storage resources, so I really hope there is a more elegant solution out there.
    I'm using CS5 on a Mac and I would LOVE it if anyone has any suggestions at all on how to fix this. Thanks!
    -Cole Hartson

    Your path needs to use a colon instead of a forward slash. Also you might need to add the name of your hard drive before Users.
    The easiest way to get the correct path is to manually place one of the images, then go to the links panel, right-click on the image name and select Copy Info > Copy Platform Style Path.

  • Printing a password protected PDF file using acroread from Unix?

    We installed v8.1.3 acroread on the server but we are unable to print a password protected PDF file from command line in Unix? <br /><br />cat  <passprotected>.PDF | /usr/bin/acroread -toPostScript | lp -dprinter<br /><br />we get the following error<br /><br />"lp: Error - stdin is empty, so no job has been sent."<br /><br />Please advice <br /><br />Thank you in advance.<br />MSUDHAN.

    Hello,<br /><br />If the pdf file has a doc open password or if printing is disallowed you will not be able to print it using the commandline.<br /><br />Any other pdf can be printed using the same command :<br />cat a.pdf | acroread -toPostScript | lp -d <printer><br /><br />Regards,<br /> Rishi

  • I Am Using Photoshop CS5 - I Used To Be Able To Open Multiple SINGLE Files - Now They Over Lap - What Do I Do ¿ - How Can I Reboot My App To My Original Settings ¿

    I Am Using Photoshop CS5 - I Used To Be Able To Open Multiple Single Files - Now They Just Overlap As One File ! - How Can I Fix This Or Reboot My App To My Original Settings ?

    In Preferences UNcheck Open Documents as Tabs

  • Password Protected PDFs in Digital Editions

    Hello,
    Is there a version of Digital Editions into which it is possible to add password protected PDFs? My apologies if this question has been posted before, it doesn't seem to be possible to search within a specific forum.
    Thanks.

    There is no current version of Digital Editions that supports opening PDF files which require a password to open.

  • How to display in browser a password protected pdf file I created?

    I created a password protected pdf file.
    I want to display the file in browser so that viewers can only view it online.
    It is better that viewers cannot download it.
    But I donot know how to prevent viewers downloading the file.
    Since the pdf is password protected, viewers don't have the password even they download it.
    But how can I display the password protected pdf file in browser when I know the password?
    Or is there a better to just viewers see the pdf file online and prevent them from downloading and printing it?

    Any file on the web has to be copied to the local machine in order for the file content to be presented to the viewer. That's how the "www" is built.  So, to make use of your web based PDF the file has to be downloaded to the local machine. This might be to the local machine's temporary internet / browser cache or (via a 'save this to my computer') to some other location on the local machine's HDD. Bottom line -- web based files get downloaded this is the case for protected file or a non-protected file.
    Be well...
    Message was edited by: CtDave

  • How to open a password-protected PDF in Safari on iPad(3)?

    I have some password-protected PDFs available on my public-facing website (hosted by MS Office365) that I'm unable to open in Safari on my iPad(3). When attempting to open these files using Safari on my iPad, I receive a grey screen with no presentation of the Adobe Reader "insert password" dialogue box. I do have Adobe Reader installed on my iPad. These PDFs do open on my PC with both IE9 and Safari. I can also open these PDFs on my iPad independent of using Safari. And, I have some non-password-protected PDFs on my website that open using Safari on my iPad. The problem seems to be uniquely associated with the combination of 1) a password-protected PDF, 2) Safari, and 3) the iPad(3). Does anyone have a solution to this particular situation?

    Someone on another forum said you can with the app Goodreader Lite, but I haven't gotten to try it yet. I will let you know in about 45 minutes.
    P.S: Or this sounds even better - http://discussions.apple.com/thread.jspa?messageID=11780778&#11780778
    Message was edited by: compwiz1202

  • Open password protected PDF in website

    Hi,
    I hope someone can help me. Greatly appreciate it.
    My website has PDF documents that's available for registered users to view online (through my site) only.
    Currently, I can't find any solutions to prevent users from downloading/"save-as" the PDF doc in their local drives, so I'm thinking of password-protecting these PDFs. This will ensure that they'd not be able to view the PDFs even though they download it and save-as local.
    However, how do I open these password-protected PDFs on my site?
    When I point/redirect to these PDFs, it will prompt for password.
    It'd defeat all protection intent if I were to give the password to the user to enter, right?
    Example:
    1. Response.Redirect("mySecuredPdf.pdf")
    2. The browser will then prompt user for password.
    What can I do in the CodeBehind to enable the server to OPEN the pdf, and at the same time, pass the correct password to the viewer to open without prompting?
    I cannot remove password, because I want to prevent users from downloading and then opening it later, or redistributing the file.
    btw, i'm using ASP.NET.
    Please help.

    There's a similar thread in the Acrobat Windows section, and the answer is the same - only a DRM system with a client UI (such as Adobe Digital Editions) can restrict the *use* of a file. You cannot prevent the client downloading and saving it, as otherwise they can't see it on their screen. The page you're reading now is not on a computer at Adobe - it's on yours.
    > What can I do in the CodeBehind to enable the server to OPEN the pdf, and at the same time, pass the correct password to the viewer to open without prompting?
    I think you're getting the flow a little backwards - the PDF is 'opened' by the client, using their copy of Adobe Reader (or whatever). The webserver has nothing to do with the process other than blindly sending the file's 1s and 0s down a wire, so can't do anything to directly control the client's desktop applications.

  • Mavericks Preview Opens Password Protected PDF?

    I exported a image in CS6 Illustrater as a pdf. I saved the pdf using two passwords. One password was for opening it and the second one for editng it. It was saved with any editing turned off. When I opened it in Preview on Mavericks the Preview app correctly displayed a password textfield to open it. After I entered the password it opened correctly. When I attempted a basic edit of the pdf, a simple rotatation of the image, Preview displayed a little note indicating that the original document was password protected so it made a copy of the original pdf. I was then free to edit the copy in Preview such as rotate, add txt, and so forth. I don't think this is going to make many people who distribute and sell password protected pdf files that happy. What the heck is going on here?

    It looks like this issue may be limited to files that have been set to restrict the user's ability to print or edit the document (even after a password has been entered for viewing).  I found that a password-protected PDF could be viewed in iBooks, but after I added the print restriction, I had the same problem you reported.

  • How to read a password protected pdf on a surface pro 2?

    Has anyone been able to successfully open a password protected PDF on a Surface Pro 2?  The Adobe Reader app doesn't work on the surface pro 2 with protected PDFs.

    Use Adobe Reader XI, the regular Adobe Reader for any Windows system.

Maybe you are looking for

  • Little stuttering on 3e monitor

    After installing a 2 videocard to play the 3e monitor and some help from the forum this works principally. One problem in this setting stay's. It looks if ones or twice per seconde the picture on the monitor "freezes" shortly, or plays back two frame

  • Satellite Pro A300 PSAGDE re-booting when plugged in

    I have had this laptop put away for a while as I couldn't work through this problem, but I'm having another try. The laptop is a Satellite Pro A300 PSAGDE. The problem I am haiving is that the laptop would re-boot whenever I connect the PSU, but not

  • SP-18 , IDOC adapter

    I'm on SP 18.. I'm having only 2 check boxes .. 1) Queue Processing 2) Apply Control Record Values from Payload I'm not having the other 2 options... : " Take Sender From Payload, Take Receiver From Payload. what could be the problem. Thanks sagar

  • Skype won't open onto the log-in screen, It stays ...

    It's been like this for a while and i've had to resort to using skype via hotmail.co.uk side-bar service. Currently in the Event Viewer to see if i can see any conflicts or anything... Have the newest version windows 7 home premium 64 bit

  • T420s Purchase: Lenovo direct vs. Reseller

    I am looking for the best deal on a t420s with i5 2.5, 4GB, 320GB 7200, camera, Bluetooth, integrated graphics, & Win 7 Pro. According to the Lenovo site there is currently a 4+ week wait on the 7200rpm drive. Even if I was willing to wait the Lenovo