Scripting 'Save PSD as PDF with password security' and 'Open PDF with password security' issue.

Hi!
I'm now building an extension for Photoshop. The script (jsx) should save the active document as Photoshop PDF secured with a password. The PW is the same all the time and is set in the script. Then the script is to open the PDF with that same password. I need all this to protect the PDF from opening by a user, so that only the script has access to the file.
I've googled a lot. I've seen a similar topic on this community dated as 2012. It's not answered. With an only comment saying that saving with a password seems to be possible via GUI and not via a script.
Has anything changed since 2012?
P.S. Illustrator .documentPassword and .requireDocumentPassword don't work in PS and ScriptListener still gives nothing :-/

ScriptListener still gives nothing
Which probably means the task is (still) not possible to achieve with Photoshop Scripting.
Both Photoshop DOM and AM seem to have weaknesses/omissions that I would consider more relevant but if you regard the issue as crucial you may want to post a Feature Request over at
Photoshop Family Customer Community

Similar Messages

  • Printer is asking for PDF but when I save psd to PDF the dimensions change

    I am trying to save psd files to pdf for a printer. He wants them 3.75 x 2.25 inches. I am creating the psd files in CMYK color as he needs. The dimensions are 3.75 X 2.25 inches but when I save the Photoshop PDF it is much smaller 270 X 262. I don't want to send it to him incorrectly. Any advice for me?
    Thanks in advance.

    You still didn’t say what the units for those numbers were.
    Anyway: pdf is currently the standard for print, and even having to open psd would be time the printers want to save, I guess, or want to get paid for.
    Moreover many (or most) print-shops have automatic preflighting-, reseparation- and montage-systems that are based on that format.
    If You got a window like this:
    you did not open the pdf, but imported it, meaning a complete re-interpretation took place – so even if the pdf may have been at 72ppi it would be up-scaled to the selected values.

  • Script to change a character in a file and opening it in Numbers

    Hello,
    Is there an easy way with Applescript to replace all the "," with a "; " in a csv file and open it in Numbers ? The best would be to be able to drag/drop the file over an icon in the dock to do that.
    Thank you

    Yes, it's easy to do, but depends on the complexity of the csv file. For instance, if you're sure that the csv is simple (in the sense that commas only appear as delimiters and never occur inside text data), then the following will work. Save it as a script application and then drop your files on it):
    on open csvFiles
              repeat with thisFile in csvFiles
                        set fp to open for access thisFile with write permission
                        set csvText to read fp
                        set csvSplitText to tid of csvText by ","
                        set csvNewText to tid of csvSplitText by ";"
      set eof fp to 0
      write csvNewText to fp
      close access fp
              end repeat
    end open
    on tid of input by delim
      -- handler for text items
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid
    If you have a more complx csv format and you have to account for commas that are within text data, then it would help to know more about the structure of the document. I mean, it could be done generically, but I'd rather not fiddle with the code if I don't have to.

  • Can I save an email message as .eml file and open it using outlook?

    Hi all,
    I use the following codes to save the received email message as .eml files:
    Session session = (Session)map.get("CURRENT_SESSION");
    //InputStream is = msg.getInputStream();
    MimeMessage mm = new MimeMessage(session, msg.getInputStream());
    String filePath = AttachmentProcess.getInstance().getFilePath(attachmentId);
    String fileName = AttachmentProcess.getInstance().getFileName(attachmentId);
    mm.saveChanges();
    mm.writeTo(new FileOutputStream(new File(filePath, fileName)));
    But when I open it using window live mail, its content looks like this:
    ------_=_NextPart_001_01CA7E32.F3122E40
    Content-Type: text/plain;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    =20
    New interaction from Thomas Lo on assignment "Assignment Enhancement":
    =20
    Interaction body goes here
    =20
    =20
    When this email is sent to [email protected], it will be filed into
    assignment "Assignment Enhancement" automatically.
    Please don't modify this line. [ID: ASIGMT 51]
    ------_=_NextPart_001_01CA7E32.F3122E40
    Content-Type: text/html;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
    xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
    xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
    xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
    xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
    xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" =
    xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
    xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
    xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" =
    xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" =
    xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
    xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
    xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" =
    xmlns:rtc=3D"http://microsoft.com/officenet/conferencing" =
    xmlns:D=3D"DAV:" xmlns:Repl=3D"http://schemas.microsoft.com/repl/" =
    xmlns:mt=3D"http://schemas.microsoft.com/sharepoint/soap/meetings/" =
    xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" =
    xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" =
    xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" =
    xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" =
    xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" =
    xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" =
    xmlns:udc=3D"http://schemas.microsoft.com/data/udc" =
    xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" =
    xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"=
    xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" =
    xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" =
    xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" =
    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
    xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/soap" =
    xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" =
    xmlns:udcp2p=3D"http://schemas.microsoft.com/data/udc/parttopart" =
    xmlns:st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40"
    xmlns:ns2=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/"
    xmlns:ns3=3D"http://schemas.microsoft.com/office/2006/digsig-setup"
    xmlns:ns4=3D"http://schemas.microsoft.com/office/2006/digsig"
    xmlns:ns5=3D"http://schemas.openxmlformats.org/package/2006/digital-signa=
    ture"
    ------_=_NextPart_001_01CA7E32.F3122E40--
    Can anybody help me ?

    This works now by coping all headers to the new MimeMessage from the coming message.
    But one issue occurs when the email contains attachments.Because all attachment will be display on the email body.
    What happens?

  • Is there an easy way to take a layered Id cc file and save and open in an older Ps?

    I am trying to proof and edit a book being made at a school where they are using Id cc.  I do not have Id, and am trying to figure out how they can save the layered file to send me and open in Ps or Ai.  All I see is converting to a pdf file but it seems complicated to keep the layers as is. They tried sending me pdf files and neither Ps or Ai will open them.  And not sure if they saved in layers.  Any help is greatly appreciated!

    Lilred wrote:
    If I upgrade to Ps cc…
    Just to be clear, you are asking about Photoshop cc? I don't see how that would be a good choice in editing InDesign files. You would need to have the school send you a PDF that you would need to open in Photoshop, which would rasterize all of the text, making it uneditable. I've never tried to edit anything with text in Photoshop, so if there is a way to keep the live type, I'm not aware of it, but even if you could keep live type, Photoshop's text abilities are very basic. InDesign is what you really need to use, and if the school has CC files, I don't see any way you can edit files that they could use without using InDesign CC. At the very least, you would need to use some version of InDesign, if not the CC version, but then you would have to deal with the problems that can happen when sharing files of different versions.
    And if you are considering editing with Illustrator, your type will likely break apart. I made an example that I'm posting as a screenshot.
    I copied a paragraph of my response to you, pasted into InDesign, exported as a PDF, then opened the PDF in Illlustrator. The upper paragraph is live, and the lower is the Illustrator that I placed below. They look the same, but I have changed the color of the live type (after the export) to show you how it breaks apart. The first magenta bit is one text fragment. When the font changes to bold, it creates a new fragment (shown in green), then a third (in blue) when it goes back to Roman. The whole second line (in yellow) has been converted to outlines, so I can't edit it at all. If I wanted to remove two of the magenta words and insert 5 different words, the rest of the line wouldn't flow. That's what you're up against if you edit with Illustrator.
    ID is the only real choice, and if they have CC, you should be using CC.

  • Can I save and open an attachemnt at the same time?

    I want to be able to open an email with an attachement or attachments and click on the save button for the attachment(s), designate the location (folder) where they are to be saved - but also tell Mail to save the attachments then open them up on the desktop. Two operations in one. If you understand my request you understand what you have to do now - two separate steps. Save. Then find the saved files and open them.
    OR
    Open the attachment from the email which then downloads the file to your designated "all-purpose" location (not the ultimate location you'd want to save it). Then once you've seen it, you do the save thing with the original mail attachment and then have to go back and delete the file from the designated all-purpose download location.
    This latter problem of having to delete unedited downloads manually could be solved with an option in Mail preferences to automatically delete unedited downloads in the "all-purpose" location after that same attachment had been downloaded to another specific location on your hard drive. This option for deleting unedited downloads does not exist, however.
    But even if this step-saver option existed in the preferences, you still would not be able to tell your Mac to save a particular Mail email attachment to a particular folder AND open that attachment at the same time in one command.
    That's what I want.
    Maybe I want both. Save and open together plus the ability to automatically delete unedited attachment downloads in the "all-purpose" download file after the same attachment has been downloaded to another specific location on your hard drive.

    with IOS 6 yes you will be able to do that

  • Save a copy of File as it is opened

    Have been trying to use Automator to save a copy of a file I open to a different location as I open it.
    The workflow is not a problem have done that and saved as a plug in but I have to select it from the available workflows and what I want is for the file to be copied automatically as I open it. Any suggestion please.
    Thanks
    Mitch

    Have followed your suggestion and it works fine with one minor problem. Just started another post but thought I would take the liberty of asking for your help directly.
    The problem is that when I click the application on the finder toolbar it asks me for the file which I select it then saves the file to the archive location and opens the application. This means that when I close the application it saves the modified file back to the archive rather than the original location. It has opened the file using the file I just saved . Any suggestions greatly appreciated.
    Thanks
    Mitch

  • Problem with "Save as Adobe PDF format" in Excel and Word

    Hi
    When I use printing zone in Excel and make a «Save as Adobe PDF format» (menu File / Save as Adobe PDF), the first save is well done. But when I make it a second time, what's not in the printing zone is printing in the document.
    I have also problem with the «Save as Adobe PDF format» in Word. The images superposition are not well print.
    I'm using Windows 7 in french, Office 2010 french and Adobe Acrobat XI standard. All is in the latest version.
    Thanks

    The Save As PDF feature in Office2008 Call up a PDF  Creator similar to the AdobePDF Print Driver. whch OX.6 can't use.
    To create Pdf you have to use method used:
    http://indesignsecrets.com/acrobats-adobe-pdf-printer-replaced-in-snow-leopard.php
    Not before you attempt to use this method if  Rossetta is not installed. pop in your Systems DVD and install Rosetta. Then follow directions to install the Adobe Quality PDF Automator Script which will show up in the Print Menu. Click on Print > then click PDF. Then Click on Adobe quality PDF.  AS for setting up Job options and other details Supposedly your suppose to  have access. But I have no idea.
    First thing Rosetta should be installed out of the box. and Second Adobe should install this Script from their installer. So their should be no intervention from the user. it should just work. Early report when OSX.6 first came out almost no one was able to get this to work. and I see periodic reports that people still can't get it tork and they have to to resort to saving as .ps files then droping on distiller.
    Good luck.

  • Is possible to save a vector.pdf with smart object?

    Hi PS masters
    I am finishing a poster, fully created in shapes in illustrator. Due to customers request I was forced to do some color corrections so I decided to use my PhotoShop CS6.
    I imported vector files into my photoshop as smart objects, added some adjustments layer, few vector masks and I changed their layer style to get the finest result.
    When I finished my work in PS I tryed to save this as .pdf
    In my .psd there are shape layers, some groups and some adjustments layers with layer masks and changed Layer style to "color", one text layer and 3 smart objects imported from illustrator.
    I want to keep my image scaleable for bigger resolutions.
    ... So I was trying to save this file as Adobe PDF but I found that whole graphic in exported .pdf was converted to raster, besides the border, cut marks and that one text layer.
    I think that this is becuase of smart objects. (saving as .pdf without them works pretty good)
    Now finaly my question.  Is somehow possible to save this document from photoshop as vector.pdf? or is possible to import group of shapes from illustrator to photoshop as shapes in photoshop? no as smart objects.
    I am running out of time so I saved it as high res .Jpeg, but I want to know if this is somehow possible for future use or If I have to rather avoid that solution.
    Thank you very much for your reactions
    // I just thought if I can use InDesign for that. Will be included .pdf file as raster? or it will stay scaleable even with smart objects in it?

    I am sorry but I don't have vector files right now (I'm on another PC), but I can show you "old" version of a poster, where you can see parts of their structure

  • Large PSD file overwritten with a PDF file

    Hi everyone,
    I've been searching google for this for a while but I can't find an answer.
    Ok, so I'm working with a large PSD (100+ layers, over 170MB). I wan't to preview it as a PDF. I click Save As ... and I make a new file on the desktop. I minimize Photoshop, go to desktop and open the PDF. Ok everything's ok. I go back to photoshop (just maximize it). I work work work .... Ctrl+S every once in a while ... and I suddenly realize that the file I'm working on has changed its name from project2.psd to project2.pdf (I see this in the top bar of the window). I minimize photoshop, go to the folder where my psd file is stored and I check it for weight -> it's now 24MB instead of 170MB. Ok, now I'm stressed and I go crazy. Istead of going back in history I decide to Overwrite my original project2 (which is now a pdf as the windows explorere shows ... [oh yeah, and the pdf I've created on the desktop is still there as a totally separate file]) with the project I have currently opened in photoshop (I still have layers in the layers pallete and everything, it's just the photoshop shows the name of the file in the top bar "project2.pdf"). I do that. Now I close all the projects opened in photoshop (I guess that's the moment I really screwed up) - though I don't close the program itself if that matters at all - and I reopen my project2.psd.
    Yes, it opens as a PSD ..... but it's flatten. No layers.
    God I'm so angry with myself now.
    I have no idea why after creating a new pdf file on the desktop the whole project I was still working with turned into a PDF file.
    Is there any home-made cheap solution to this? I wan't to get my 170MB 100+ layers file
    Does Vista store some temp files anywhere? I suppose it won't be there.
    Sorry for being so emotional about all this but I'm really screwed if I don't get my original file back.
    PS. I've found a file called Photoshop Temp631890 in the Temp directory. Can't open it with PS. Is there anything I can do with it?
    Thank you in advance,
    Auror

    Much thanks Ronald .... yes Robert you too.
    Sorry to answer this topic with such a delay. I've been busy finishing this project. Not re-doing the whole thing thank God!
    Ok so I know that if I overwrite a file it's lost.
    I didn't loose everything 'couse I was able to recover an earlier copy that was erased. Some data-recovery software found it on my drive and was able to recover it. Moreover while I was recovering it I remembered that I've left a copy of my PSD file on my clients FTP server 2 days earlier. I did loose a couple of hours of work but all wasn't lost.
    I could swear to god I saved my PSD "AS A" PDF and somehow both files turned into PDFs. Well ... s**t happens right?
    gonna be more carefull next time.
    Thakns for everything.
    Auror

  • Save text to pc with password

    Am i able to transfer text msgs from phone to computer and stop other people accessing them. I have windows xp and a nokia 6230i with pc software. i know how to save word docs etc with passwords, but not sure how nokia pc suite stores the info. how do i save the info with a password . i understood that the backup facility was the way to transfer the text n photos, but this didnt give me the option of saving securly with password. it has taken me ages to delete any trace so that i can start again. many have access to this pc so i dont want others viewing my text or photos .i want to be able to save all text and photos to pc and delete them from my phone.....please help...ps not that computer literate so please keep it simple thank you

    I have exactly the same problem.
    I did think about writing a viewer, just to read each sms file and extract the relevant data. But because my programming skills are so weak it would take me like a month to do it.
    Anyone at Nokia with more skills than me got a spare hour to write a viewer?

  • Help Saving Ps .psd as .pdf (balloons over 2GB won't save)

    Here is my 8-bit CMYK .psd (one pixel layer, 12 font layers)
    It sits on the HD at 151MB
    It opens at 130MB
    File> Save AS: Photoshop PDF settings:
    The save process stops with cannot exceed 2GB limit.
    MY QUESTION is:
    Why is my .psd file going from 150MB to over 2GB .pdf (Preserve Ps Editing capabilities is unchecked)?
    How should save this document as a PDF so the fonts print vector sharp through a RIP (banner poster), I don't want to outline them?
    I've never seen this before and am stumped...

    thanks for the input, conroy, i just redid the file in InDeisgn (cost me 2hrs)
    it exported at around 135MB in about 10 seconds -- just what i would have expected -- not the gigabytes and minutes and Ps was taking before it erred
    +++++++
    not a good week for Photoshop here -- first my Trial is running out, then the mystery crashing and now this unusable PDF function...

  • Save Forms Fields PDF with information un-editable

    We created a simple 5 form field PDF invoice for a client to edit and send out to customers. They want to be able to edit the fields, but then save the resulting PDF with the input information to be un-editable but the end customer they are sending the invoice to. Is this possible?

    Will the client be using Acrobat or just Reader? If just Reader, you can lock the fields after they are filled-in by making them read-only, which will require a script. You should also set the default value of each field to the current value of the field, which prevents clearing the form if the user resets the form. There's an older topic from several months ago that discusses this in more detail. If you can't find it, post again and I'll try.
    If they will be using Acrobat, a better approach is to flatten the form fields, which converts the field apperances to regular page contents, removing the form fields in the process. You can flatten fields with Acrobat using JavaScript, PDF Optimizer, or Preflight. Post again if you need help with this.

  • I need to able to print a pdf that is locked.  It has fields to fill in but then to save a copy I need to "print" to PDF not save as a pdf because that is not an option with the document.  Is there a way to do this?

    The PDF has fields to fill in but then to save a copy I need to "print" to PDF not save as a pdf because that is not an option with the document.  Is there a way to do this?  HELP!

    Sorry I thought  was just a one off, it would be no use for large volumes.
    Do you not have this avaiable in the print menu in Preview with these documents?
    I have also found a link on the Adobe web site that discusses that this facilty is enabled by the creater of the PDF.
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd61510979419 5ff-7e0d.w.html
    If you do a web search there are various claims on how to save a protected PDF, I have'nt a way to test the proceedures. I would want a copy of any forms that I sent off, not sure why they protect them in this way, there must be a reason.

  • Dante font used in manuscript - when I try to save as a pdf document in Microsoft Word whole pages change their look, with wide gaps forming between certain paragraphs or sections. This does not happen with other fonts.

    Dante font used in manuscript … when I try to save as a pdf document in Microsoft Word whole pages change their look, with wide gaps forming between certain paragraphs or sections. This does not happen with other fonts.

    OK, we've got it!
    What is happening is that when you use Microsoft's save as PDF in Word, the font isn't embedded even though the font is tagged to allow embedding. Furthermore, Microsoft doesn't properly put the font name into the PDF file such that Acrobat or Reader can readily find the font installed on your system such that the text can be properly displayed and/or printed. Acrobat and Reader attempt to display and/or print the text using a “substitution font” and of course, as they say, YMMV (“your mileage may vary”)!
    I personally submitted the report of this problem (both the embedding and the font name problem) to Microsoft. They acknowledge the bug, tried a fix and provided me a build with it, but it wasn't right. Maybe they will ultimately fix it, maybe they won't. We don't know yet. We do know that if it is fixed, it will be fixed only for Office 2013 (problem occurs with all Office applications since they use the same PDF generation code) and thus such a fix won't help you.
    Adobe Acrobat Standard and Acrobat Pro  both provide an Adobe PDFMaker plug-in to Office applications (including full support for Office 2010) that adds an Acrobat Toolbar as well as a Save as Adobe PDF menu item. The resultant PDF file fully supports embedding of OpenType CFF, TrueType, and Type 1 fonts and in many other ways produces much superior PDF with a full range of PDF generation options not available with the Microsoft PDF. (Note that beginning with Office 2013, Microsoft does not support Type 1 fonts in Office documents at all, even for existing documents!) The Acrobat Office functions are widely used and respected in the end user community and whatever “issues” there are (all software has “issues” of some type - it is a matter of how many and how severe), you should be in much better shape for PDF production that with what you currently are using.
    Good luck and let us know if this resolves your problems. (Note that you can download and install a free fully-functional 30 trial of Acrobat Pro to assure that it meets your needs! You can then buy a license and activate what you already have installed.)
              - Dov

Maybe you are looking for