Doc, save as, and function of trust

I read on the forum and the adobe help files. I think I'm close, but given that I have to get my IT Department to help place the js files where they need to go, I thought I would ask the forum if I'm on the right track

I always have to make sure that the field values will not include any non-compliant characters. They are not empty like forms will come directly from our system pre-populated

Currently these forms by e-mail automatically (while still hitting the real send button) staff when to go to print the document.  People who receive these forms are right it is a bit difficult to follow up with emails and asked that just the files save to a folder, so they can watch when they have time

That's what I have for my job to trust propagator.  I guess that's the only js file I need that it takes over the function of trust?

mySaveAs = app.trustPropagatorFunction (function (doc, path)
{
app.beginPriv ();
doc.saveAs (path);
app.endPriv (); })

myTrustedSpecialTaskFunc = app.trustedFunction (function (doc, path)
{
Privileged and non-privileged code above

app.beginPriv ();
mySaveAs (doc, path);
app.endPriv ();
Privileged and non privileged code below});

I got this code from the help of Adobe

so I want to have this code in the box to print Document has

var name = this.getField("FormValues.accountNames_0").value
= this.getField ("FormValues.folioNumber_0") .value folio var

myTrustedSpecialTaskFunc (this, "/ w/Public/AccountOpening /" + name + "" + folio, pdf);

I read where to put the js file because I saw some comments on the forum when you place the js file has changed for those with Adobe X and Windows 7

Anyone would be able to let me know if I'm on the right track before IT involved me.  I guess I could test the code on my own laptop to see if it would allow me to save the form...

Thank you

Read this: Ninja Acrobat: Acrobat 10.1.1 JavaScript changes

You must manually create folders that are not present, and they must be named correctly.

It's a good idea to use the valueAsString instead of the value property property to get the values of field, since you are using the results as a string. He will probably not make a difference here, but it's a good habit to get. You also have typo in that last line of code. It should be:

myTrustedSpecialTaskFunc (this, "/ w/Public/AccountOpening /" + name + "" + folio + ".pdf");

If there is a chance that they could be, it would be a good idea to make sure that these field value are not empty.

Also, consider using a try/catch block for the call of doc.saveAs and look at the return value, so you can give users an error message more useful than what will be the value by default if something goes wrong.

If you need assistance with this, post again.

Tags: Acrobat

Similar Questions

  • doc.saveAs () and function of trust

    About three years ago I posted on this forum a question about creating a function of confidence to save in a specific location.  I can't find the original message.  I remember at the time, I was looking for a way to record exchange of what path of a user to the user in the user's desktop folder.  Someone came up with this:

    myGetPath = {app.trustPropagatorFunction (function (v1, v2)}

    app.beginPriv ();

    Return app.getPath (v1, v2);

    app.endPriv ();

    });

    myTrustedGetPath = {app.trustedFunction (function (v1, v2)}

    app.beginPriv ();

    Return myGetPath (v1, v2);

    app.endPriv ();

    });

    safeSaveAs = {app.trustPropagatorFunction (function (doc, vPath)}

    app.beginPriv ();

    doc.saveAs({cPath:vPath});)

    app.endPriv ();

    });

    myTrustedSaveAs = {app.trustedFunction (function (doc, vPath)}

    app.beginPriv ();

    safeSaveAs (doc, vPath);

    app.endPriv ();

    });

    After reading through the API reference and this tutorial, I do not understand the difference between the function of the trust and the confidence function propagator or why I need a propagator of the trust.

    What I need now, is to save to a predefined folder, so I guess I can drop the getPath part.

    I think that this code was written by me...

    TrustPropagatorFunction according to the API, is:

    Marks a function as a propagator of the trust. Such a function is not himself trust but can inherit trust so called from a function of confidence.

    If you want to use a fixed folder just hardcode in your script when you call myTrustedSaveAs. For example:

    myTrustedSaveAs (this, "/ c/temp /" + this.documentFileName);

    This saves the file under the same name, but in the C:\Temp\ folder.

  • In the new Firefox 4, what happned to the Save tabs and functionality of quitting smoking, is there a way I can still use this feature?

    I just downloaded Firefox 4 and I got a problem on my Norton spyware toolbar is not incompatible, but anyway, the most important thing that makes me choose Firefox on any other web browser is that I am able to save tabs and then exit. I think it was more great things because I could run my laptop off and save energy and when I got home I'm cold to take back what I what to do. My question is simply is you never have it save tabs and leave the new service or at least a way people would turn the function on will.

    One of the changes in Firefox 4: by default Firefox 4 does not display the warning "Save tabs and exit" then to the closure of several tabs, but it can be turned on again by changing some preferences.

    • Record of the tabs was not removed from Firefox 4, but it works a little differently.
    • By default, Firefox 4 will not ask to save tabs, but instead it will always save your tabs on the output unless you're in private browsing mode. You can restore the next time by:
      1. by clicking on the Firefox button > history > "restore previous Session ', or
      2. type of Subject: House in the URL bar and press the Enter key, then press the button "restore previous Session."
    • Note: This was a decision by the developers. On this forum, we are all volunteers without compensation here to help other users. Develop them and employees of Mozilla/Firefox rarely, if ever visit here.

    Things to check:

    1. Browsing history must be saved

      • Button Firefox: Firefox button > Options > Options > privacy > [X] Remember my browsing history
      • Menu bar: Tools > Options > privacy > [X] Remember my browsing history
    2. Also, make sure that you do not erase "Browsing history" when you use clear recent history or when Firefox is closed
      • Using clear recent history

        • Button Firefox: Firefox button > history > clear recent history
        • Menu bar: Tools > clear recent history
      • When Firefox is closed
    3. Make sure that you are not in private browsing mode or in private browsing mode permanent:
    4. If you have the Tab Mix Plusextension, and then clear the built-in session restore.

    To display the message "save tabs and exit" when closing multiple tabs, you can do the following:

    1. Type of topic: config in the URL/address bar and press the Enter key
    2. Accept the warning message (promise to be careful)
    3. Open the preferences/list page
    4. Filter = browser.tabs.warnOnClose
    5. If its value is set to false, double-click top (in the lower panel) to toggle its value to true
    6. Repeat steps 4 and 5 for the 3 following preferences also:
      • browser.warnOnQuit
      • browser.warnOnRestart
      • browser.showQuitWarning
    7. See:
  • When you modify a form in the DC or Pro Player I can enter text etc., save, close, and return later to change it. However, once I use the function "Fill & Sign" and save the document, it locks the file and all other fields are not editable. Is there a

    Hi guys,.

    When you type information in a form in the DC or Pro Player I can enter text with fields of text etc and then save, close and return later to change the form. However once I use the function "Fill & Sign" to sign the document, and then save, it locks the file and all other fields become editable. Is there a way around this to remove this feature where it becomes locked and instead allows me to change the form after a signature is applied and saved. All the security properties of the form are on 'admitted', there is no restriction. Even though the document is locked all the properties remain still as 'authorized '.

    The signing is FINAL.  You cannot sign a PDF paper advance. Complete and save, do not sign.

  • I installed Adobe elements 12 update to 6 items.  I need to use the save for Web function, but it is grayed.  I tried re-installing 12 items three times in case there was something missing, but this has not solved the problem and save the enemy

    I installed Adobe elements 12 update to 6 items.  I need to use the save for Web function, but it is grayed.  I tried to reinstall 12 items three times where it was missing something, but this has not solved the problem and enemy Save Web feature is always gray on. How can I get this feature too much work. I contacted the home and they have happened to you. I have 20 minutes to make a customers web work and if I don't work (about £500). Please advise/help.

    You are on the Expert tab in the editor?

  • Why 'SAVE', 'SAVE AS' and 'CANCEL' InDesign CS6 functions stop working after a short period of time?

    Why 'SAVE', 'SAVE AS' and 'CANCEL' InDesign CS6 functions stop working after a short period of time?

    Sounds like a conflict. What else is in course, including plugins ID third-party programs or utilities that run in the background on the Mac?

    Also, have you tested in a new user?

  • Move a document to a function of trust

    [Warning: Beginner]

    I'm putting a backup on a document of livecycle button. It will create a file name based on some of the fields of the form.

    I understand that I must do it by using a function of confidence.

    The example that I found as a base has the function of trust defined as:

    var MySaveAs = app.trustedFunction (function (oDoc, cPath, cFlName)

    {

    app.beginPriv ();

    Make sure the path has trailing ' / '.

    cPath = cPath.replace(/([^\/])$ /, ' $1 / ');

    try {}

    oDoc.saveAs (cPath + cFlName);

    } catch (e) {}

    App.Alert ("error during save it");

    }

    app.endPriv ();

    });

    and the call is defined as:

    MySaveAs (this, cPath, "filename");

    The reason I think that it does not work, it's 'this' in a form static pdf is a document, and 'this' object in a form of livecycle is the current object, which in this case is a button

    ("oDoc.saveAs is not a function" is the error I get in the console).

    When you get to saveAs, oDoc is an XFA object and an xfa. The button is not as the saveAs method.

    So the question is: what should I put as the first parameter in the call which is the subject of current document, so that the confidence function gets a Doc object and not a XFAObject object? What is my problem?

    Thank you

    Jon

    You are right in your analysis that 'this' has a different value in the documents of XFA and AcroForm.

    You should be able to use

    MySaveAs(event.target,cPath, "filename");
    

    in an XFA form instead.

    For more information, take a look at the documentation.

    Hope that helps,

    Martin

  • Can't get firefox to save settings and tabs when closing even if I check the box that asks if I want to save the settings and tabs when I close Firefox

    When I close Firefox I get the reminder box that asks if I want to save settings and tabs on the next launch I check the Yes box, but he never save the settings or the tabs, function works very well on the desktop but not on the computer laptop windows 7

    This has happened

    Each time Firefox opened

    == me remember not just started could have been after an update

    If you use delete navigation, search and download history on Firefox in Firefox 3.5/6, or clear private data in Firefox 3 to clear the browsing history when Firefox is closed then in restaurant tabs at the last session (for example "save and exit" or "show my windows and tabs from last time ') does not work.

  • Corrupted downloads: I can't open files sent as attachments unless I have save first, and then too often content is damaged and unusable

    I can't open files sent as attachments unless I have save first, and then too often content is damaged and unusable. Example: application forms, data and field boxes merge so I can't read or fill them. Often these are doc files, but not always. Tried to download the same files on my work computer that I can do without any problem, so I know that the file is ok, but when I get to my computer at home they have corrupted. Any solutions would be welcome. Thanks, Kate

    Use this tutorial which is to solve 'unable to open attachments directly from Windows Mail or Windows Live Mail doc. "

    http://www.Winhelponline.com/blog/unable-to-open-doc-attachments-Windows-mail-or-WLM/

    After that, you can open it without having to record?
    If so, is he still scrambled after that you open.

    t-4-2

  • Save ink and toner Adobe Reader

    There is a function for printing Adobe Reader allows you to mark "save ink and toner" until you press on print. How does it work? or can someone point me to a link that contains a technical description?

    Forums of Acrobat here: Acrobat

    Acrobat DC is just the latest version of Acrobat, not a different product.

    May not be able to save Ink/toner in your particular case. I think it looks more light.

  • Doc.saveAs () method to get an error message

    Hi all

    I want to save a pdf file under a range of png with the saveAs() method files.

    this.saveAs ({cPath: "/ E/temp/temp.png", cConvID: "com.adobe.Acrobat.png"});

    I have run this script and choose a pdf file to process.

    But get an error like this,

    ---------------------------------------------

    UnsupportedValueError: The value is not supported. = > Parameter cConvID.
    Undefined Doc.saveAs:1:Batch: Exec

    It seems that something wrong with the cConvID parameter. com.adobe.Acrobat.png is in the cConvID of Acrobat Javascript API Docs lists, why it could report error message?

    ENV: Windows/Acrobat 9.0 Pro

    Think in advance.

    Kind regards

    -gavin

    It should be "com.adobe.acrobat.png", not "com.adobe.Acrobat.png".

    JavaScript is case sensitive...

  • How can I change the sort order of the files read in save under and keep the new permanent sort order?

    When I find an image that I want to save, I choose to save the Image under. Navigate to an existing folder, but the items are not ordered by name. I right click on the window save as and choose Arrange by name. The work of sorting and I recorded my element. Later, when I return in the same folder that the elements are not ordered by name. I want that option "arrange by name' to be permanent.

    The same as with a file browser. The bar at the top of the window.
    name, size, date ... click on what you want.

  • How to save Pages and Numbers documents?

    I have an air of the ipad 2. I do not use the cloud rather synchronize with itunes on my laptop.

    How to save pages and numbers documents I created.

    Sync to itunes will do it?

    Thank you

    Should be

    ITunes sync keeps a snapshot of the content on your iDevice

    Understanding, iTunes backup - Tenorshare

  • struggling to save bookmarks and save the

    I used Mozilla for years. In the last weeks I had trouble with bookmarks. This since my last update. I can't save bookmarks, and I've lost 90% of my saved favorites. I have a little to save in my bookmarks folder, but when I try to restore it says that the file is not usable. I uninstalled the program and reinstalled with the same problem still there. Help, please!

    One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.

    You can check if you still have a JSON backup in the bookmarkbackups with lost bookmarks.

    You can look at the size of the file.

  • List of exceptions of the cookie - how you save, copy and reload it to another instance of Firefox on a machine tour?

    List of exceptions of the cookie - how you save, copy and reload it to another Firefox instance on a different machine? What is the name of the file/s used?
    I need to upgrade the machines regularly and waver not to have to retype all those addresses cookie blocked in each new instance of Firefox.

    The file "permissions.sqlite" stores exceptions 'allow' and 'block' for cookies, images, pop-up windows and installation of extensions (software).

Maybe you are looking for

  • My menu bar is abalaze with like a firework and I want to remove it please.a

    Hello... The problem area is I think called the menu bar. I'm not computer. I have a print screen capture but basically time the bar menu at the top of the screen and the addon at the bottom of the screen are like a firework of multi color sensadoule

  • I need to download Win 7 64 x Where MEA

    Dear Sir I have the serial number for Win 7 64 x OA MEA when I bought my Toshiba Satellite L750-A104 lab topSo, I need the link for win 7 64 x OA MEA to download

  • Laptop Pavilion G7: Touchpad

    Because Windows 10 has been installed (24/12/15), the lock on the touchpad light won't come to disable the touchpad. I always use the wireless mouse, no touchpad. I would like instructions to stay simple (old lady lol). Also noticed mention in my que

  • DVD/HD DVD playback on the mode dual screen on Satellite P200 IDE

    HelloI can't play videos on my Plasma TV, DVD or HD no passage in double and clone mode. I have windows vista error message."Cannot send video to an external device. Pleasemain device display by pressing on the key Fn andF5 after you close the applic

  • No Internet after formatting

    Access to the Internet after formatting Hello After formatting my pc with xp OS my Internet does not work, but prior to formatting, everything was ok... What should I do?