How can I use field value as a pdf filename in save as dialog box

Hello,
I want to use a submit/save button and once you press that the document is automatically named like a field in that document,
e.g. their is a date field in PDF, When I click Save button in PDF  Then the file name in Save As window is automically entered. Like "09/08/2012.pdf"
I'm using Adobe Acrobat X Pro.
Thanks a lot for all your help,
I really appreciate it.

Hello Ebnul.nao
I am having this same problemwith trying to work this out.
Did you succeed in the end?
I will really appreciate your help if you did
Kind regards

Similar Messages

  • Folder level script? How can I use field value as a pdf filename in save as dialog box

    I read somewhere that if you use a folder level script, you can do things like save a pdf with a specific filename - possibly based on a field name.
    How would one set up a folder level script?
    How do you execute a script from the PDF?
    What code would you use to change the PDF name to the contents of the fFieldName text field?
    Or, is this really just impossible to do?

    The article is interesting.  It suggests you place code like this:
    // Page Replacement Function
    var ReplaceLastPage = app.trustedFunction( function(cPath) {
    app.beginPriv();
    this.replacePages(this.numPages-1, cPath); app.endPriv();
    In the trusted folder.  What is the path of the trusted function(s) that get automatically loaded into Acrobat?
    I assume in the example above, function(cPath) is a function inside of the PDF...

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

  • How can I remove a page from a PDF document and save it as a new PDF document?

    How can I remove a page from a PDF document and save it as a new PDF document?

    Tools - Pages - Extract and tick the option to delete the extracted page from the original file.

  • How can I use a Value at several different places without using a long wire?

    too much wire alway make program into mess.So can I use the Value in labview like using it in C.
    I have try the "Local Value",but it don't work well as a Cluster. For example, I can't connect it with "Unbundle By Name" and other Cluster Tools.

    Overuse of local variables is probably worse than the "mess" created by long wires. It increases memory usage, violates data flow, and increases probability of race conditions. A better solution to long wires is to make the diagram smaller by using subVIs. There's been a lot of discussion here and in the various LabVIEW style guides about avoiding local and global variables. I use them seldom and only then when I doing some complicated user interface.

  • How to incorporate File name and timestamp automatically into select and save file dialog box?

    Hello,
    i am trying to incorporate the file name which is inputed by the user along with the timestamp into the selected and save file dialog box. Can you help?
    Thanks
    Solved!
    Go to Solution.

    You can pass a default file name to the 'File Dialog' Express VI.
    Use the 'selected path' output to open the file.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    FileDialog.vi ‏21 KB

  • How can I use the value returned for a function into the macro ??

    I create a function to work in a macro and I would like to use the value of parameter f_calc_error returned by function in a condition like IF, but I don't know how can I do that. I have to use the macro function CALC_ERROR ??
      Thanks.
    Edson Suzuki

    Hi Edson,
    Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
    You can use a macro similar to the following:
    IF
      CALC_ERROR( )
      = 'X'
          DO SOMETHING HERE
    ENDIF
    Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
    data: g_flg_calc_error type /SAPAPO/FLAG.
    * SAP will pass g_flg_calc_error variable to all macro
    * functions. When SAP calls a macro function, it does
    * something like this.
    call function '/SAPAPO/MACRO_FUNCTION_HERE'
            exporting
              plob_values      = i_s_adv_plob_values
              sdp_book         = g_c_advf_sdp_book
              sdp_view         = g_c_advf_sdp_view
            tables
              cols_index       = i_t_cols
              value_tab        = l_t_value_tab
            changing
              f_calc_error     = g_flg_calc_error
    As you can see, the g_flg_calc_error variable
    is passed in the "changing" part of the call. The macro  function being called can then use the f_calc_error
    variable to change the value of the global
    g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error.  The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
    Hope this helps in clearing things out

  • How can I pass field value beetwen view in IC Web Clien

    Hi my name is Adrian and I am begining abuot BSPs programming.
    I have a next problem, I have two views, IRecReson.htm and IRecFollowUp.htm.  They have a description field both, and I need to pass the same value to description field when the user save data to IRecReson.htm update the value to description in IRecFollowUp, but I don´t know how.
    Could you help me.
    thanks

    Hi Adrian,
    Welcome to the world of BSP Programming,
    For passing data between two views u need to have a link to custom controller, since the data linked to the custom controller you can directly access from any other view controller.
    you can use methods like get_attribute, set_attribute present in the entity class to get/set values to the attributes in the view controller!.
    Hope this will help U..
    Thanks n Regards,
    sudeep v d..

  • How can I pass field value beetwen view in IC Web Client?

    Hi my name is Adrian and I am begining abuot BSPs programming.
    I have a next problem, I have two views, IRecReson.htm and IRecFollowUp.htm.
    They have a description field both, and I need to pass the same value to
    description field when the user save data to IRecReson.htm update the value to
    description in IRecFollowUp, but I don´t know how.
    Could you help me.
    thanks

    Hi Adrian,
    Welcome to the world of BSP Programming,
    For passing data between two views u need to have a link to custom controller, since the data linked to the custom controller you can directly access from any other view controller.
    you can use methods like get_attribute, set_attribute present in the entity class to get/set values to the attributes in the view controller!.
    Hope this will help U..
    Thanks n Regards,
    sudeep v d..

  • How can i use multiple values in RANK

    HI All,
    we hav eto display RANK  by mutilpe values .
    i mean  we have sales amount , qty, name  we have to dispaly top 20 rank with  amount  if amount is equal after 6 th rank then second pirority goes to qunatity for remaiing ranks if  after 15th rank if quantity also equal then it should rank based on name for remaing ranks   is it possible in Obiee 11g?
    If we are able to top 20 ranks by amount only then  we are no need to worry about remaing values.
    like RANK ( Amount , Qty , Name ) ....
    Thanks in advance for your time.

    If yours is OBIEE 11g play with Selection Steps you will get that fixed easily the following blog will give you an idea
    Rittman Mead Consulting &amp;raquo; Blog Archive &amp;raquo; Oracle BI EE 11g &amp;#8211; Filters &amp;amp; Selection…
    Thanks
    NK

  • How can i display the value fetched from my database back onto my combo box

    i have saved a selected value from my combo box in my database.
    i want to display the same value on my combo box to the user on a jsp page.
    Can someone help me?

    <%
    String valueInYourDatabase="2";
    String[] valuesToDisplay={"1","2","3"};
    %>
    <SELECT name="square_root_of_for">
    <% for(int i=0;i<valuesToDisplay.lngth;i++){
    String s=valuesToDisplay;
    %>
    <OPTION value="<%=s%>" <%=(s.equals(valueInYourDatabase)?"SELECTED":"")%> ><%=s%></OPTION>
    <%}%>
    </SELECT>
    Something like this...
    didn't compile it so their are surely errors ;)
    regards
    Alban

  • How can I use Firefox to view a pdf in a local file? On the web pdf's open in Acrobat but in a local file (file:///C:/T10/drafts/adc3/adc3r04.pdf) Firefox displays raw text instead of launching Acrobat

    I am configured to open pdf's in Acrobat instead of Firefox. This works great on the web. I have a local mirror of a website on my local disk as well as a network disk. When I use my html file to attempt to open the pdf on the local disk (file:///C:/T10/drafts/adc3/adc3r04.pdf) it opens as text in Firefox - appears to be ASCII view of the binary contents of the pdf. When I use my html file on my network disk (http://tucgsa.ibm.com/~kdbutt/T10/drafts/adc3/adc3r04.pdf) everything works as it should.

    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer and use the Adobe Reader instead.
    *http://kb.mozillazine.org/about:config
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • How can I use my 27 iMac as a screen for my Satellite tv box? Usb?

    I'm trying to watch TV from my Directv, into the usb in in my 27" iMac, to use the iMac as a tv. There are several adapters that will convert it properly, but I don't know where to look for software that will let me just watch it in real time, as opposed to recording it.
    Anybody know of such a program/software?
    thanks!

    What iMac model do you have ?
    The 2011 ThunderBolt iMacs only work with other ThunderBolt Macs Thunderbolt 10.6 Help: Using another Mac as an external display
    For the 2009 and 2010 27" iMacs with Mini DisplayPort you might need something like the Kanex XD http://www.kanexlive.com/xd
    The Kanex XD is not compatible with ThunderBolt iMacs.
    Stefan

Maybe you are looking for

  • Itunes wont sync, Error 1651. iTunes 10.5.1, Windows 7, iPhone 3G

    My iTunes has stopped syncing, since the last software update. It reports errors such as unable to establish apps, photo problems. When I go to the Summary and Check for Update I receive the following error: iTunes could not check for an update to th

  • How do I choose a specific email address for a person in a group?

    I want to create a group in my address book. Several of the people in the group have 3 or more email addresses. How do I specify which email for a person is used when I send an email to the group?

  • How to output full image path to logger/console

    Hi All I'm just starting to get my hands dirty with the lr sdk and could do with a little guidance. For part of a plugin I need to retrieve the full path to each image, and although I can achieve what I want I'm struggling to print the path to the co

  • FLV creation

    So Adobe has stopped supporting their own format FLV in Media Encoder now in 2014.  Removal of FLV and F4V export features from Adobe Media Encoder, After Effects, and Premiere Pro http://blogs.adobe.com/aftereffects/2014/06/removal-flv-f4v-swf-expor

  • YouTube video not working

    I used to watch youtube videos everyday on my ipad2, it worked well until a few days ago. I can see thumbnail of the video fine, but when it started to load after a while it said " an error occurred , pls try later", I tried it repeatedly with the sa