Dynamically populate pdf File name in 'Save As' dialogue box

We have  rendered a pdf using adobe webservice.
Once the pdf is generated , and we click on saveAs menu dialogue box opens and default name is populated in fileName field.
Can it be possible to populate that name dynamically ? We tried using response.addheader() but it didnt work.
Note : We are using java to create xml which we are passing to adobe webservice.

Hi Jaynet,
In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
html format (but with the .xls
extension). 
(I actually prefer the .xls
extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
Any help is greatly appreciated.
Thanks

Similar Messages

  • 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!

  • Excel 2010 missing default suggested file name in Save As dialog box

    I’m using Excel 2010 running on Windows 7 (32 bit).  When I open a certain file which produces the following message: "A file is in a different file format than its extension indicates", and then go to “Save As” (or “Save”) the
    file, the default suggested file name is missing (blank).  This didn't occur in previous versions of Excel. 
    In previous versions, Excel would automatically populate the original file name in to the File Name field.
      I have searched all over the net, looking for a way to change Excel so that it will once again populate the file name in this situation. 
    To reproduce:
    Create a new blank workbook
    save as type “Web Page”, (i.e. File name:  “Blank Example.html”)
    Close workbook
    In windows, rename file from .html to .xls  (i.e. rename “Blank Example.html” to “Blank Example.xls”)
    In Excel open renamed file (i.e. “Blank Example.xls”) and click “Yes” when prompted with the “A file is in a different file format than its extension indicates” message.
    Do a “Save As” and you will notice that the File Name is blank. In previous versions, this field would contain the current workbook file name
     (i.e. “Blank Example.xls”)
    Any help will be greatly appreciated.

    Hi Jaynet,
    In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
    The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
    html format (but with the .xls
    extension). 
    (I actually prefer the .xls
    extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
    for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
    To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
    In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
    I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
    However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
    Any help is greatly appreciated.
    Thanks

  • Can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF

    can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF?

    No, there isn't. The way you're using the file is not recommended. You
    should use a review tracker to avoid getting in the way of one another.

  • How to chante the PDF File Name in Broadcasting

    Hi Team,
         Could you help me?, I am in a project where the customer need  the Following requirement with the PDF File Name in the Broadcasting:
    I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in  PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
    Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
    Thank you very much.
    Leslie Denise.

    Hi,
        Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
    And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
    But Thank you so much for your answer voodi.
    Regards
    Leslie Denise.

  • Finder changes the file name in Save/Save As dialogue box

    Whenever I save or save as a file, the dialogue box opens, but when I make the file list active when using a mouse, the file name I click to changes the file name I am saving. I simply want to activate the file list window so I can find the right folder. For example if I am looking for a folder called "Receipts" I want to be able to click on the file list window to activate it and then type the first 2 letters of the folder-- "re" and then save the file in that folder. The finder keeps changing the name of the current file whenever I click on one of the "greyed-out" file names? This doesn't make sense unless of course I want to replace that file.
    Is there a shortcut that makes the file list window in the dialogue box active while in the SAVE/SAVE AS dialogue box??

    Yes, this example of horrible UI design has been a problem since "Panther". It illustrates what happens when you try to copy UI behaviour from another OS, do it poorly, and end up with a mess. In 10.3 and 10.4, the combination of the renaming behaviour with the default "replace" selection in the resulting save can result in data loss.
    Compared to the old Mac OS where a tab would flip the focus between the text field for the file name and the file browser, the current behaviour either doesn't allow enough keyboard access to controls, or with "full access" enabled, too many to cycle through easily. The inability to switch focus to the file browser using the mouse (depending on the view) is a horrible productivity loss. Having to recheck the filename before saving is a horrible productivity loss. Since there is no "undo" for the renaming in most files, having to retype the name is again, a horrible productivity loss.
    If they had done it right (a simple change, like requiring a modifier to rename), users would probably welcome the "rename" feature as a useful addition. Instead, it has the feel of something a junior Windows-trained programmer slipped in past their supervisor.
    In short, I am not aware of any workaround or hack to avoid this "renaming" behaviour. I doubt it will do any good since people have been doing so since "Panther", but you could try submitting feedback:
    http://www.apple.com/feedback/macosx.html

  • Change File Name on Save

    Hi all,
    I have an action recorded that helps me to resize and rename an original image several times.  The action works perfectly, but I have to have the save step as manual so I can enter the correct save name for each file after the action resizes the image.  The save process is idential each time so I figure you must be able to 100% automate this.  So here is the scenario - hope someone can help.
    I have a heap of files open in Photoshop CS3
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '1500' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '400' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 3 characters of current file name and add '200' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '100' to end of current file name and save and close file (this is what I want to automate)
    run action again for all open files (this is what I want to automate)
    thanks in anticipation!   BD

    Here's a script for you:
    var count = 4;           // number of characters to remove
    var appendStr = '1500';  // string to append
    function main() {
      if (app.documents.length == 0) {
        return;
      var doc = app.activeDocument;
      var nm = doc.name;
      var base = nm;
      var ext = '';
      var m = nm.match(/(.*)(\.[^\.]+)/);
      if (m) {
        base = m[1];
        ext = m[2];
      if (base.length > count) {
        base = base.substring(0, base.length - count);
      var newName = base + appendStr + ext;
      doc.duplicate(newName);
    main();
    Save this to a file called "1500Dupe.jsx" or whatever.
    At the end of your first action, call this script. It will create a duplicate of the current document with last 4 characters replaced with '1500'.
    You will also need additional step in the action to save this to a file and close the duplicate document. It's simpler to do this in the action than it is in the script.
    You will need to create new jsx files for each of the other substitutions that you want to make. Just change the 'count' and 'appendStr' values as needed and save to new files.
    -X

  • Mail Notification with Custom Subject, Mail Body and PDF File Name

    I have successful configured the Action Profile to send SmartForm Mail as PDF. But i would like to modify the Subject, PDF File Name & add text to mail body when a mail is sent to the user.
    The Subject of the Mail is the same as the PDF file name. How to maintain a pre-defined file name for the PDF file.

    I was able to find a commercial product that works very well. MaxBulk Mailer from Max Programming allows you to import a list of recipients, merge with personalized message and designate an attachment (just image types and PDFs, not all types work) and send.

  • Ibooks ver1.5 pdf file name changed

    After updating to version 1.5 (700) of iBooks on my iPad (ver1, iOS version 5.01), almost all of my pdf file names in iBooks are changing once I open those items. Some of the files change to what appears to be a property of the PDF file such as "Microsoft Word - (orginal file name)print.doc(x)" and other just get blanked out all together. The files names in iTunes when I connect my iPad seem fine, but within iBooks on the iPad it is a mess. Any ideas? My understanding is that the way to manage files names for PDFs in iBooks is through iTunes, but right now they seem out of sync.

    Me too...I just filed a bug on the apple ipad support page. I guess after they see hundreds of filings of the same bug we'll have their attention :-) Obviously the latest IOS 5 iBooks update was not thoroughly
    tested...
    I've also noticed that not only are the names of my titles  changing back to the metadata names in the original PDF when I open the PDF in iBooks but that changes I make in iTunes to the category of a PDF never sync
    to my iPad 2
    Like others I have hundreds of PDF titles on my iPad2 ...when the document titles/names/categories become unintelligible or won't update I can'tmanage my library and it makes iBooks almost useless. I tried but
    don't seem to be able to correct the problem by updating the PDF book "Info" in iTunes and forcing a re-sync.
    -Rocky

  • Urgent, SOS for help: How to show the pdf file name at the right bottow of the page?

    I want to show the pdf file name at the right bottow of the page for filing purpose, anybody knows anything?
    I know it can be showed at the left bottom through adobe printer, but i need it to be at the right bottom.
    thanks.

    The result is a UIWebView that displays a blank page. No errors occur in the UIWebView delegate method. The thing is that data has the correct length, in bytes, for the PDF I am trying to display, and I also get the pdf file in Library/Application Support/iPhone Simulator/4.3.2/Applications/ Does anyone have an idea as to what might be going wrong here or how I can better debug this problem?

  • Change default pdf file name

    Hi,all
    How can I change a default pdf file name from unknown.pdf to something else?
    Regards,
    Michael
    Edited by: Michael Beilin on Feb 6, 2008 9:47 AM

    HI Michael,
    Yes you can do that,
    Just do something like
         IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("PdfSource");
         ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
         binaryType.setFileName("TravelRequest.pdf");  // Set file name
         binaryType.setMimeType(WDWebResourceType.PDF);  // set the mime type
    for example in the doInit() before providing the file for download 
    Regards, Angel

  • Can we customize the Save As dialogue box in Acrobat DC?

    I was wondering if there is already a way we can customize the new DC Save As dialogue box.
    I would love to be able to open directly to "Choose a Different Folder" without going through this extra dialogue box (I understand the appeal of it, but it's not optimal for my workflow). Or perhaps, if I could customize the options under "Storage" (e.g. adding our own database folders "Posters", "Documents", etc, or maybe just pulling the "Favorites" folders from Windows explorer)
    I get the decision to have document cloud and creative cloud as default options. That's great for sharing and collaborating on documents, but I'm just managing too many documents and too large of a database. In my situation it's just, well, sub-optimal.
    I'm on Windows 7 running Adobe CC Group.

    OMG, I've been having this same exact thought since the first time I went to do a Save As ever since upgrading to Acrobat DC.
    (Mac OS X Yosemite here.)
    I find it so ridiculous to have to go through this extra step with every single "Save As."
    Example:
    1. Open our job ticket template PDF (for billing a project), which is in a "Company Templates" folder on my computer.
    2. Fill in the details/time for that project.
    3. Select "Save As" to save the job ticket to my project folder (different location).
    4. Have to click "Save to a different folder" every single time.
    "Save As" is nearly always going to be for saving a new version of a file to a different location, so I don't understand why there is now this extra step. It's just unnecessary IMO.
    So, to quote Will Riker: "Yes. Absolutely. I do indeed concur... wholeheartedly!"

  • Report opens Save as Dialogue Box, on client.

    Hi,
    I am using Report Builder 11.1.2.1.0, and I am calling a report from Form.
    If I run/call report on my own pc it opens perfectly in browser (pdf format), but if same report is opened on client pc, it opens Save As dialogue box and asks user to save the report.
    Can you please let me know, how can I achieve to open a report in browser on client's pc, without opening Save As Dialogue.
    Eagerly waiting for your replies.
    Regards,

    That is probably because the user's browser does not support opening a pdf document.
    Most browsers support pdf, some need a plugin. Check what happens with any other pdf document on the web that you want to open on the user's PC, like http://docs.oracle.com/cd/E16655_01/server.121/e17643.pdf

  • I purchased an annual subscription to Acrobat Pro XI and installed two days ago. I cannot open PDFs. I keep getting a dialogue box saying my trial has ended and asking if I want to buy the software. Was using Acrobat Pro 9 previously. It appears even that

    I purchased an annual subscription to Acrobat Pro XI and installed on my Mac two days ago. I cannot open PDFs. I keep getting a dialogue box saying my trial has ended and asking if I want to buy the software. Was using Acrobat Pro 9 previously. It appears even that won't open. SOS!

    Hi Margot ,
    You can click on accept or buy ,which ever option you see on that dialog box.It will prompt you to type in your Adobe Credentials.You can license it by doing the same.
    If it still doesn't work ,follow these steps and see how it goes .
    Delete all the files from following folders:
    [Home]/Library/Application Support/Adobe/SLStore
    [Home]/Library/Application Support/Adobe/SLCache
    And, delete all files from following folder except cache.db
    [Home]/Library/Application Support/Adobe/AdobePCD
    Then launch Acrobat and try to activate and check.
    Regards
    Sukrit Dhingra

  • I cannot and never have been, able to open a file that has been previously saved to hard disk by choosing the print to file option in the print dialogue box

    '''I cannot and never have been, able to open a file that has been previously saved to hard disk by choosing the print to file option in the print dialogue box. Firefox displays gooblygook even though the file name is an html, Windows Notepad crashes, MS Excel does not recognise the file type. MS Word displays goobblys also when the file has no filename extension.'''

    If you use print to file then you get a file that is meant to be send to a printer and that file has all kind of formatting code for that specific printer.
    Opening such a file in Firefox or a text editor can only work if you use a text only printer to print the file to, so make sure that such a printer is installed and selected.

Maybe you are looking for

  • How can I make an editable pdf file from Indesign?

    I have created a Indesign dealer catalog for my company and exported it into a interactive PDF for the Engineers to use when helping a customer with ordering. Now they would like to be able to edit the PDF with notes whenever they want. How can they

  • Nokia 6300 corrupt theme

    hi i have my nokia 6300 for a year now and i always download new themes for my phone. but last week as i was changing to another theme, my phone suddenly restarted, then when i was applying a theme it said the theme was corrupted. i tried applying th

  • Dynamicaly manage role permissions using JAAS

    Hi All, I'm pretty much a newbie to JAAS and I need your help with the following requirement we have in our application. We have a set of predefined permissions that we know in development time and we can assign to EJBs. We need to be able to assign

  • Coding binary in Java, how is it stored or extracted? Please assist

    Hey people i came across the code below in a puzzle game and i dont really understand how binary coding works with java. could some one explain how this code would be store or extracted? Is the code below how it would be stored? please explain public

  • Is it possible to redirect external user to external address

    Hello, i need to redirect some external requests to another external ip(through the same interface), how it could be performed? I tried  ip nat outside souce static MAP-ADDRESS REAL-ADDRESS but without success. Thanks in advance