JavaScript File, Save As para la consola de Acrobat XI

¿Cómo lograr que al guardar un formulario PDF con otro nombre utilizando el menú (File, Save As) solamente los campos que han sido rellenados pasen a modo (Read Only)?
¿Cuál sería el JavaScript?
Aquí muestro la consola de JavaScript de Acrobat XI para que me indiquen en cual de ellas hay que aplicarla.

Por favor. ¿Alguien me puede ayudar con este asunto? Párese que tiene su complejidad...

Similar Messages

  • File-Save As Behaves Badly

    There are really two conditions I can't solve, both related to the File:Save As... menu item in Acrobat Pro v9.1.2...
    I should note that I have Acrobat Pro 9.1.2 installed, and I'm running Safari 4.0.2 (5530.19) on an MBP 2.5GHz C2D with 4GB of RAM. OS X v10.5.7 totally current.
    Condition 1:  When I grab a PDF document from a web page, it opens in it own Safari Window just fine, as expected. I get the Adobe Plug-in Tool Bar as expected. So now I want to File:Save As the downloaded document that I am now looking at in my Safari window
    I select File:Save As... and the expected dialog opens and the document title always defaults to 'downloadDocument' instead of the actual name of the file that I have grabbed, even if the html has passed the true file name to the browser and plug in. This means I have to retype the name of the document before I click OK. What a pain......
    I cannot find a preference or other setting that would be controlling this. I've looked through the Safari Prefs and the Adobe Prefs
    How do I get the default file name in the File:Save As dialog to be the name of the file I have grabbed?
    Condition 2:  Assume I am grabbing a number of PDF documents in sequence this way, and I want to save them all into the same target folder on my local drive or a mounted network share point.  So I grab the first file I want, retype the name of the file because it is now called 'downloadDocument', and then navigate to the desired target location and save the file.
    Now I grab the second through 'n'th PDF document in series, invoke File:Save As... again each time, and have to retype the correct name of the file each time, and then save each one.  you might think that Acrobat Pro would remember the last used target directory and open the File:Save As... dialog at that location on the target drive each time after the first time.  But no, it seems to point where ever it wishes to point.  And I can't find a preference to set.  Can't find any place to tell Acrobat Pro to always default the save to the same place as the preceding file.
    So it is insult upon injury.  Not only do I have to retype the name of every file.  I also have to navigate again to the desired target storage location for each and every file I download.
    This is clearly a pain, not very user friendly or efficient, and very frustrating.
    Can anyone help????
    TIA

    File save as does not work that way for me, something is up. I'd suggest two things to try:
    1) What happens if you try a different user? If this works properly you most likely have some sort of preference file corruption.
    2) Use applejack or onyx to remove your system and/or user cache.

  • JavaScript To Save A File In Adobe 8?

    Can anyone show me a sample JavaScript to save a file in Adobe 8?
    I tried using "Execute a menu item
    File>Save"
    but it doesn't seem to work in adobe 8.

    Adobe does not consider this a 'safe' menu item and has removed from the list of menu items that can be executed. There is more information available in Acrobat JS API Reference.

  • Pasting from a web page into a File-Save dialog no longer works; causes a freeze-up

    When I place an order on Amazon, I copy the order number, then print the invoice to .pdf. When the file save dialog comes up, I paste in the order number as part of the file name. I used to, that is. At some point the pasting part no longer worked: nothing (visible anyway) is pasted, but something is happening, as the file save process hangs, and I have to use task manager to kill it. Then, the print process is trashed - if you try to print again, you get an error - and I have to restart Firefox to clear that.
    This copy/paste procedure works fine in IE & Chrome.

    The only way I was able to reproduce what you described is to run the script after copying a picture.
    Here is a refined version.
    It make two attempts to grab text items from the clipboard.
    If both failed, it send an error message.
    --[SCRIPT table2text]
    Enregistrer le script en tant qu'Application ou Progiciel : table2text.app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:
    Il vous faudra peut-être créer le dossier Applications.
    Copiez vos données dans le Presse-papiers.
    menu Scripts > table2text
    Le presse-papiers sera alimenté par le composant Text ou utf8 du contenu initial.
    +++++++
    Save the script as an Application or an Application Bundle: table2text.app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:
    Maybe you would have to create the folder Applications by yourself.
    Copy your block of datas to the Clipboard.
    menu Scripts > table2text
    The Clipboard will be filled with the text or the utf8 component of its original contents.
    Yvan KOENIG (Vallauris, FRANCE)
    4 février 2009
    --=====
    on run
    try
    set the clipboard to (the clipboard as text)
    on error
    try
    set the clipboard to (the clipboard as «class utf8»)
    on error
    if my parleFrancais() then
    error "Pas de données texte dans le presse-papiers !"
    else
    error "No valid text data in the Clipboard !"
    end if
    end try
    end try
    end run
    --=====
    on parleFrancais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parleFrancais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mercredi 4 février 2009 21:49:14)

  • Deployed application does not contain javascript files

    Hello,
    I am a unexperienced user of the BPM Studio. When I start my application in Oracle BPM my application does not contain the javascript files. It is quite weird, because the path to the .js files is proper - the application works on other computers. I have observed several weird things:
    - when I lookup the application in Firebug, when I try to lookup the source of the .js files, firebug console presents something like this (i deleted most of the html so that it is easy to read):
    <html><head><title>Apache Tomcat/5.5.15 - Error report</title>
    <body>HTTP Status 404 - /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    Status report message /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    The requested resource (/workspace//webRoot/webResources/js/jquery-1.4.2.min.js) is not available.
    <h3>Apache Tomcat/5.5.15</h3></body></html>- as i said - the application works just fine on other computers, without having to edit the path to the .js files
    - the application doesn't deploy the application (at least I think it does not) in the OraBPMStudioHome - the application is in the following folder:
    C:\Users\<username>\AppData\Local\VirtualStore\Program Files\OraBPMStudioHome\webapps\workspace\webRoot
    I am using OracleBPM Studio 10gR3, my system is Windows 7 Proffessional 64bit. Could the fact, that my system is 64 bit, cause the error?
    I haven't changed anything in the web.xml, workspace.properties files.
    It looks as if the server didn't include my js files. What may be causing this? I tried to locate the folder where the Tomcat Server deployes the application, and copying the js files where they should be manually, but that didn't work out well - the web application still does not see them.
    By the way, the double // slashes in the path to the .js file are fine on other computers, but is that proper?
    My application uses other scripts, not only jQuery, so changing the link to the jQuery file, won't work.
    I'd be very happy for any solution, thanks in advance!
    Chris Mejka
    Edited by: 789731 on 2010-08-20 01:20

    Nope, that's not the case; all the imports are handled by the <fuego:webResources /> tag, like this:
    <script type="text/javascript" src="<fuego:webResources relativePath='js/jquery-1.4.2.min.js'/>"></script>If that helps, the folder structure, with the .js files is as follows: ../webRoot/webResources/js/ ....
    As I said before - none of my colleagues, who use this application, has this problem, the application runs fine on other computers. The only (or at least that's what I think) difference, is that I use a 64 bit OS... Maybe that's the problem? Or maybe something is wrong in one of my BPM configuration files?
    Edited by: 789731 on 2010-08-20 02:29
    Edited by: 789731 on 2010-08-20 04:42

  • How to get an Adobe trusted function javascript to save a pdf form even if fields are empty?

    I have a form I have created in Livecycle designer which I want to save to a specific location using a combination of specific fields in the form. I have been able to do this by writing a trusted function and putting it in the adobe javascript file and then putting some code on a save button in the form. However, it may be that some of the fields (vfirstname and vsecondname) may be blank and i still want the form to save. Ideally i want to write an if statement to substitute those fields for other fields if they are blank but cant get the code to  work.
    Working code in trusted function file
    // SaveAs Function1 var mySaveDoc = app.trustedFunction(function(doc) { app.beginPriv(); var vDate1 = event.target.xfa.resolveNode("form1.page1.Table1.Row1.leftsideofform.Timeanddate.Dateofca ll").rawValue.toString(); var vfirstname = event.target.xfa.resolveNode(" form1.page1.Table1.Row1.rightsideofform.Prospectiveclient.ClientFirstname").rawValue.toSt ring(); var vsecondname = event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Prospectiveclient.C lientsurname").rawValue.toString(); var myPath = "/MGLCC01-SV/MGPdata/Mihomecare/testce/" + vDate1 +"_" + vfirstname + "-" + vsecondname + ".pdf"; // saveAs is the only privileged code that needs to be enclosed doc.saveAs({cPath: myPath, bCopy: true, bPromptToOverwrite: true}); app.endPriv(); }); 
    Working code on save button in form
    form1.#pageSet[0].Newenquirymasterpage.Button1::mouseUp - (JavaScript, client) var txt = form1.execValidate(); //This script will validate all required fields event.target.mySaveDoc(event.target) xfa.host.messageBox("Document has been saved to shared drive", "File Saved", 3, 1); 
    IF code for trusted function file that I cant get to work
    // SaveAs Function1 var mySaveDoc = app.trustedFunction(function(doc) { app.beginPriv(); var vDate1 = event.target.xfa.resolveNode("form1.page1.Table1.Row1.leftsideofform.Timeanddate.Dateofca ll").rawValue.toString(); if (event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Prospectiveclient. ClientFirstname").rawValue == " ")      {          var vfirstname = event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Enquirer.EnquFirstn ame").rawValue.toString();      }      else      {          var vfirstname = event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Prospectiveclient.C lientFirstname").rawValue.toString();      }     if (event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Prospectiveclient. Clientsurname").rawValue == " ")      {          var vsecondname = event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Enquirer.Enqsurname ").rawValue.toString();      }      else      {          var vsecondname = event.target.xfa.resolveNode("form1.page1.Table1.Row1.rightsideofform.Prospectiveclient.C lientsurname").rawValue.toString();      } var myPath = "/MGLCC01-SV/MGPdata/Mihomecare/testce/" + vDate1 +"_" + vfirstname + "-" + vsecondname + ".pdf"; // saveAs is the only privileged code that needs to be enclosed doc.saveAs({cPath: myPath, bCopy: true, bPromptToOverwrite: true}); app.endPriv(); }); 
    Can anyone suggest why the If code above doesn't work? or how i could get the form to submit even if the fields are blank?

    It can also work if you certify the document and each user chooses to trust it to execute privileged JavaScript, which may be feasible in this setting. The method you'd use is doc.saveAs: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    Also, read the following tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • Need some help with button JavaScript for Save As event.

    Hi,
    I'm using Adobe Acrobat X Pro and am completely new to scripting forms in Adobe (completely new to Adobe Acrobat as well!).  On a form there is a save button that opens the Save As dialog by using a trigger (Mouse Up) and action (Execute a menu item - File>Save As...>PDF...) and this works fine, however, I want to now use javascript to modify this button's behavior so that is uses a trigger (Mouse Up) and action (Run a JavaScript), and I want that JavaScript to combine the text values from two form fields (a location Dropdown and a date Text field) and use this concateneated string + ".pdf" as the filename when it opens the Save As dialog.  Make sense?
    This is what I have added to the button as a JavaScript so far I am using a test string at the moment ("NewFile.pdf") and will add the concatenated string to the script after I know the script is working as it should.
    var newFileName = "NewFile.pdf";
    var pathArray = this.path.split("/");
    pathArray.pop();
    pathArray.push(newFileName);
    this.saveAs(pathArray.join("/"));
    Two issues so far:
    1. When I click the button nothing happens, no Save As dialog or anything. 
    2.When I check the button properties under the Actions tab the Select Action property shows "Execute a menu item" even though I previously selected "Execute a JavaScript"
    Thanks for any help!

    Thanks guys, I appreciate the response!  If I can bypass the Save As dialog and save the file to a default location using a file name that is contructed from two form field values then that would be perfect. I definitely think it is feasible to have a script file installed locally on each users workstation. I don't quite understand about folder-level security, etc. yet but am eager to learn how to do this stuff if you can give me gentle push in the right direction!  Thanks!

  • Including external Javascript file in JSP- not working on Mozilla Firefox

    I have a JSP page which includes javascript file as below:
    <script type="text/javascript" src="https://siteAddress/scripts/myJsFile.js"></script>
    myJsFile.js has a method testFireFox()
    There is a link on JSP which that calls this method.
    <a href="#" onClick="testFireFox()">Some Text...</a>
    As soon as i click on the link, nothing happens and this error appears on console:
    Refrence Error: testFirefox() is not definedI tried giving the path for JS file in various ways but it did not help.
    Note: This works absolutely fine in Internet Explorer.
    I have not added Javascript to document.ready or onLoad event. It is simply been referred in <Head>
    tag any pointers pls..

    This forum is intended for user support, not for web development issues.
    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You'll need to register and login to be able to post in that forum.

  • File save as command

    Hi is there a way to get acrobat to retrieve data from the first form input field and then use it in the file naming convention when using the "file save as" command. is there a javascript or something to do this?
    In other words, I have a savable form that I created. it is going to be a template that will be filled out by people in my organizatin. Once they complete the form, they will save it to a network directory. I don't want it saving as the same file name and having people accidetnaly overwriting files already saved. Some people are not smart enough to change the file name. I would like acrobat to retrieve informatino from the first input field and use this as the name of the file to be saved. MS word does this when you create a document. I don't see why acrobat can't do it either....many thanks for anyone that can help.

    The only way is to install a folder-level JavaScript file on each user's system or use a certified document and get the users to trust it for restricted JavaScript. For more information, see this fie tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • File-Save As form in SharePoint

    How can i get Adobe reader or Pro to do a file save as to the same location in SharePoint?

    Hi,
    To save a page as PDF, you can take consideration of using jsPDF.
    The links below with demos for your reference:
    http://parall.ax/products/jspdf
    To save a file into document library, here is post from the thread below using SharePoint Copy.asmx web services for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9146d127-87b0-4a64-86ec-11a4c2798f62/how-to-upload-file-to-document-library-using-javascript-client-object-model?forum=sharepointdevelopmentprevious
    More information about Copy Web Service:
    http://msdn.microsoft.com/en-us/library/copy(v=office.12).aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to call that javascript file?

    I developed javascript for automated pdf files. But i don't know how to call that javascript file from outside of acrobat. Kindly advice me the various way to use that script. This is for acrobat 8.0 for windows platform.

    You can place Acrobat JavaScripts in various form elements, document actions, documents, and the application folder or user application folder. See the Acrobat JavaScript API Reference and Guide fo rmore information, http://www.adobe.com/devnet/acrobat/javascript.html .
    From within Acrobat's JavaScript's debugging console, one can use the following code to locate the JavaScript folders used by Acrobat/Reader:
    function JSInfo() {
    /* define function to report JS information */
    // some basic system information
    console.println(app.viewerType + ' ' + app.viewerVersion + ' is running on ' + app.platform);
    // user level script folder
    try {
    var userJS = 'User level JS folder: ' + app.getPath("user","javascript");
    } catch(e) {
    var userJS = "User has not defined use JS folder level scripts";
    console.println(userJS);
    // application level script folder
    try {
    var appJS = 'Application level JS folder: ' + app.getPath("app","javascript");
    } catch(e) {
    var appJS = "There are no defined application level JS folder level scripts";
    console.println(appJS);
    return;
    } // end of JSInfo function
    JSInfo(); // call the function

  • Adding javascript file

    Hi
    I am a photographer who shoots virtual tours for a living. My clients are increasingly wanting custom html pages in which the virtual tours are placed. I have little html knowledge so iweb is an excellent choice for me to design these pages. I have found the relevant information on how to embed flash content in iweb which works well when tested locally. However in order for the tours to work online I need to import or add the java script file that is produced by the tour building software. When I save the tours they are attached to a plain html page with an accompanying javascript file which does all the necessary work behind the scenes. When I use iweb to create a new html page the relationship between the javascript file and the html file is lost, due to the original html file being deleted and replaced by the new files produced by iweb. Can anyone offer any help on this as its a major problem for me and I have spent weeks trying to figure it out with no success.

    You could put the javascript in the topbar if it is used in all navigations.  Another way is to put your javascript definitions in one of the js files that are already included on every page.
    Other than that, you would have to add the javascript to all navigation schemes.

  • Accessing Javascript console in Acrobat X Std

    Good evening,
    for some reason the "Ctrl + J" shortcut does not work on my Acrobat X Std. The shortcut does show up in the helpfile so I assume there is something wrong. Does anybody else have the same issue?
    Thanks

    OK, I get it. Try the following:
    Create a plain text file with the following code "console.show()", you can call it something like "open console.js".
    If you are on a Mac:
    Open up your Acrobat app by right clicking and picking "Show Package Contents", navigate to Contents/Resources/JavaScripts and put the script there.
    If you are on a PC:
    Place the above script in /Program Files/Adobe/Acrobat ?/Acrobat/JavaScripts
    Then restart your Acrobat and hopefully after start-up your console will pop open.

  • Call External Javascript file in Custom Visual WebPart

     Hi..
     How to call external javascript file in Custom Visual WebPart in sharepoint 2010
    Ravindranath

    Hello,
    Download that script and save in layout folder or within a site. Then use below script tag in webpart:
    <SharePoint:ScriptLink ID="ScriptLink2" Name="location/jquery-1.5.min.js" runat="server" OnDemand="false" Localizable="false" />
    http://stackoverflow.com/questions/5068663/how-to-call-an-external-javascript-file-from-a-webpart
    http://stackoverflow.com/questions/5243821/external-javascript-file-in-sharepoint-web-part
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Embedding javascript files

    I need to embed a Javascript file in the body of all my Apex pages, in the form
    <body>
    <script type="text/javascript" src="myscriptfile.js"></script>
    </body>This is easy to do with a bog standard HTML page but I'm not sure how to do it in APEX. So I have 2 questions -
    1. What would be the best way to accomplish this? I was thinking along the lines of embedding this HTML in my application template (obviously without the BODY tags). Is this the best way to go?
    2. Where on my server/PC do I save the myscriptfile.js file so it gets picked up by all my APEX pages?
    Cheers
    Antilles

    This will depend on where you store your javascript file:
    1. if you store it in the apex image directory (/i/) you can put it in the page template header (do it for all page templates):
    &lt;script src="#IMAGE_PREFIX#your_javascript_files/javascript_file.js"  type="text/javascript">&lt;/script>2. if you upload the file into your workspace and do not associate it to an application you could put this into the page template header (do it for all page templates):
    &lt;script src="#WORKSPACE_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>or if you associate it with an applciation
    &lt;script src="#APP_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for