Save the PDF file as the name of the field in PDF format

Hi all

I have read this thread: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript and I still cannot understand this.

I want to have a custom of the button Save to my PDF form and have it save the filename with fields in my form.  The names of the fields are 'Ready', 'NameofEvent', 'EventStartmdyy '.

so for example, the PDF is filled and returned to me with its name from default pdf as "Event application form update - 1.pdf", then I get it and click on the button, then it registers as 'DarinVegasTradeshowJune152015.pdf' and records them in a file specific to each time.

I read on a reliable access and put it in a javascript in the folder or on my computer? My colleague and I'll be the only person to save these, only on the two machines.

Hope you can help.

Thank you

I tried the following:

The correct syntax, that I, based on the returned for 'this.path' debugger

/HAUCACAM0007VS/shares/Marketing_bridge/Darin/'MasterTracker/EventRequestForms/1/test.PDF

so I changed the code of this

determine the path of the directory of the active document

Directory var = this.path.substring (0, this.path.lastIndexOf('/') + 1);

for this

determine the path of the directory of the active document

Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.

and it worked.  I swear I've tried and some variations before.

Very interesting.  I can send me this PDF file, open it without saving changes, click on save and point it to my repertoire that I wanted to.

Yay! Solved!

Thank you try67!

Yet once, for the sake of people Googling how...

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

I pasted this code into a text file, saved as a javascript (.js file), in the following Program Files > Adobe > Acrobat > Javascript, I also pasted into the folder where I will save the file.

  1. var mySaveAs = app.trustedFunction)
  2. {function (oDoc, cPath, cFlName)
  3. Make sure the path has trailing ' / '.
  4. cPath = cPath.replace(/([^/])$ /, ' $1 / ');
  5. try {}
  6. app.beginPriv ();
  7. oDoc.saveAs (cPath + cFlName);
  8. app.endPriv ();
  9. } catch (e) {}
  10. App.Alert ("Error during economy-" + e);
  11. }
  12. }
  13. );

Then, I created a button, it adds a javascript script.  the "this .getField are looking for field names in my PDF,"Ready"is a field in my PDF which bears my name of sales managers, then, it adds a space beside it (+" "+), then go to the next field I want."  It saves it in order to complete the pdf, then as SalesManager EventName 1 June 2015.pdf.

  1. determine the path of the directory of the active document
  2. Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.
  3. If (typeof (mySaveAs) == 'function') {}
  4. mySaveAs (this, directory, this.getField("RequestedBy").value + "" + this.getField("NameofEvent").value + "" + this.getField("EventStartmdyy").value + ".pdf");
  5. } else {}
  6. App.Alert ("Missing Save function. Contact the Forms Administrator ");
  7. }

Hope that helps anyone looking on the other to do so, it is quite easy once you know where to save the javascripts (and what to put in it), and then change another javascript code to meet your needs.

Thank you!

Tags: Acrobat

Similar Questions

  • How can I fix this error msg? your default printer must support a minimum resolution of 300 x 300 to use the shape tool. I am trying to save in PDF format.

    How can I fix this error msg? your default printer must support a minimum resolution of 300 x 300 to use the shape tool. I am trying to save in PDF format.

    When you have what you want to save the selected PDF file, make sure that you press properties, and set the resolution in the settings.  PDF files themselves have quality settings, (print quality, Web quality etc) then make sure that you have the right to a game if you plan to use the "print" function to save in PDF format.

  • Hi, actually I want to save as a PDF labview code to prepare my documentation, it is possible to save in pdf Formate?

    Hi, actually I want to save as a PDF labview code to prepare my documentation, it is possible to save in pdf Formate? Please answer me quickly...

    Thans in advance.

    When you print a VI, you can choose to print documents of the VI and print it to the printer. If you install the PDF printer, it will appear as a selection. PDF Creator is one of the PDF printer free that you could use.

  • JavaScript to invite the user to save in PDF format

    I make the changes with the code for the file. I want the user to be prompted to save as a file .ai first. I have that down. Now, I'm eager to have the user immediately prompted to save as pdf with only the option optimize for fast web view selected. I think it's an adobe built-in smallest file size.

    The reason for wanting the guest is because I want to save the files in 2 different places.

    Here is my code so far...

    var doc = app.activeDocument;
    // Save as .ai file  
    var fileName = doc.fullName;  
    var thisFile = new File(fileName);
    var saveFile = thisFile.saveDlg();
    doc.saveAs (saveFile);
    
    
    // Save as .pdf file
    var pdfSaveOptions = new PDFSaveOptions();  
    pdfSaveOptions.pDFXStandard=PDFXStandard.PDFXNONE;  
    pdfSaveOptions.compatibility = PDFCompatibility.ACROBAT5;  
    pdfSaveOptions.preserveEditability = false;  
      
    var pdfFile = new File(fileName);  
    doc.saveAs(pdfFile, pdfSaveOptions);
    
    
    
    

    HAVE CS4 Windows 7 64 bit

    the folder structure is already existing?

    If so, things are simple.

    If the name and the number are in the file you could draw that from the entry rather then manual doc to guests.

    (Note that there is no test to check the folders exist etc...)

    var job = prompt("Enter Job Name");
    var num = prompt("Enter Job Number");
    aiFile = "D:\\"+job+"\\"+num+"\\AI\\Schematic.ai"
    pdfFile = "D:\\"+job+"\\"+num+"\\PDF\\Schematic.pdf"
    
    var newaiFile = new File(aiFile);
    var doc = app.activeDocument;
    doc.saveAs (newaiFile);
    
    var pdfOpts = new PDFSaveOptions();
    pdfOpts.pDFXStandard=PDFXStandard.PDFXNONE;
    pdfOpts.compatibility = PDFCompatibility.ACROBAT5;
    pdfOpts.preserveEditability = false;
    var newpdfFile = new File(pdfFile);
    doc.saveAs(newpdfFile, pdfOpts);
    

    If you want the script to create the folders so it is a little more difficult.

    JavaScript will not do that, and you need another work autour.

    something like that...

    if (Folder(qfolder).exists){
    app.activeDocument.saveAs( saveName, saveOpts );
    }else{
               //alert("about to try bat");
               batpath= 'call "C:\\Adobe Scripts\\MakeDirectory.bat"';
                battemp = new File("C:\\Adobe Scripts\\tempBAT.bat");
                battemp.open("w");
                battemp.writeln(batpath + " " + qfolder);
                battemp.close();
                battemp.execute();
             //alert("Had to Create Folder, Please press OK to continue...");
                $.setTimeout = function(func, time) {
                        $.sleep(time);
                        func();
                };
             $.setTimeout(function(){ app.activeDocument.saveAs( saveName, saveOpts )},200);
             }
    }
    

    the MakeDirectory.bat is just:

    ECHO OFF
    CLS
    
    IF %1=="" GOTO BLANK
    
    SET savepath=%*
    MKDIR %savepath%
    GOTO FINISH
    
    :Blank
    ECHO No Folder provided
    GOTO FINISH
    
    :FINISH
    

    the tempBat.bat is used to call the MakeDirectory.bat with the name of the file as an argument.

  • Are not sent to the printer by default, asks me to save in PDF format

    Everytime I go to print a Web page, the print menu comes upward and instead list the default printer first, he asks me for sure the Web page in PDF format. How can I get this back to where it displays the default printer as the only option I have?

    SS

    Is your printer but simply not listed first?  If it isn't...

    Most often when a device does not work, it is because the driver is damaged. Re-install a new copy should help

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

  • All I want to do is save in PDF format!

    Read all your comments. Right, absolutely stupid.

    All I want to do is save in PDF, I don't want to send a cloud or anywhere else outside of my computer. I can convert a PDFno problem but do not get the option to save?

    Cannot find where to cancel the subscription to them.

    Hi debbypq,

    When you convert a file using the ExportPDF online service, it is automatically saved in your online account. You can download it to your computer by clicking on the tabs of files when you are connected to https://cloud.acrobat.com/files, by selecting the file, then click Download.

    If you decide you want to cancel your subscription, please see cancel your subscription or membership. Acrobat, Acrobat.com online services.

    Best,

    Sara

  • Why are misunderstood paragraphs when I do save as PDF format

    I use 12 FrameMaker and Acrobat Pro XI. When I do a 'Save As PDF' of a book and you select the bookmarks that I want and you organize their hierarchy etc. Acrobat includes formats of paragraphs that I chose not. For example, it seems to include a random selection of table of contents entries, I have doesn't have a selection to include.

    I went back and checked that all the paragraphs are the correct formats, but it continues to be.

    In addition, once I generated the PDF file, PDF settings I chose are not registered correctly. In other words, whenever I do a 'Save as PDF' I select paragraphs formats I want to include in the form of bookmarks again; It seems to have saved some of them, but not all of them.


    Any ideas?

    Bookmark information (i.e. PDF configuration information) are stored with each file/book, so if you have saved the file, these parameters must also be registered. Try using the Format > Document > PDF of installation... ability to define things way th in the book and then save the book. The correct settings are currently maintained the next time that you open the book and the need to create a PDF file?

  • LaserJet M1212nf MFP: laserjet MFP won't allow scans to save in pdf format

    scanner does not provide an option to save as .pdf scans

    You analyze with the help of scanning worms or any other application?

    Try scanning by Windwos scan below, it provides PDF scan capabilities:

    https://www.Microsoft.com/en-us/store/p/Windows-scan/9wzdncrfj3pv

  • How to remove the default setting to switch the field in Word format codes

    Maybe I changed the settings for the field codes and all my links now appear as full description i.e. {HYPERLINK http://www.microsoft.com} instead of www.microsoft . com

    Well, if I just select and press SHIFT + F9, I can switch, but I don't want to appear in the first place.

    Please suggest!

    Open Word, click on the "round", select "Word Options", go to "Advanced", scroll down to the section "Display the content Document" and uncheck "Show codes field instead of their values".

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com

  • How to: save the image in multiple formats AND edit file names every time automatically?

    Hello!

    First of all, I hope I'm not opening a discussion that has already been asked/Treaty. a lot. I couldn't find a solution to my particular problem until now in the web and I hope someone can help me.

    I work with Adobe Photoshop CC 2015.

    My problem is: I work a lot with product photos (whole/collage of several elements) and I want to speed up the process-saving in multiple formats (JPEG and PNG, sometimes TIFF as well).

    The initial situation is: I have a main PSD file (to keep things clean and centralized) with several layers, each layer containing a different element. I need to check/uncheck layer visibility often, add/remove elements of collage to generate variants of game.

    With every change that I agree (very minor steps), I have to go to SAVE AS... (Shift + ctrl + s)-> SET a format (JPEG, PNG, TIFF)-> EDIT file name (according to whole-variation [e.g. "Assembly-set01_lightbulb" / "Assembly-set01_lightbulb_cable" /...]---> save.) Fact.

    And then REPEAT the steps together, define another format drop-down list, change the name of the file again (since the file original .psd remains without additions) and so on...

    This process could his insignificant, but for me, when it comes to the variations set, consumes a lot of time, in particular, by taking changes in layers is a matter of 2 clicks.

    So what I know: There is an option to automate the in some workflows. I can create an action, where hitting a predefined key, the original PSD is saved as JPEG and PNG. But that's all. No change of name of file or the destination can be performed (AFAIK).

    Now what I want: I want to hit a predefined key, SAVE as... context-window, JPEG (...) is defined by default as defined format, I can modify the file name and/or ideally choose another folder to save to (...). Press enter-> the file is saved in JPEG format with the file name and alternative way edited. A new RECORD under... context window appears, PNG (...) is defined as the default format defined, I can still ideally to change the file name and press ENTER to find:

    -the original (unchanged) PSD file,

    -a copy of this image to JPEG with file name changed (... _xxx.jpg) [in another folder path, if I wanted to.

    -a copy of this PNG image with file name changed (... _yyy.png) [so somewhere else if I wanted]

    All this with the push of a single button(-combination) and my entry to change the names of files.

    Is it possible? I hope that my request is understandable and you could understand, what I want to achieve. The process itself is quite simple, but I have too complex concepts on how I want to maximize my workflow.

    Thanks in advance.

    Regards, Phil

    Hi Phil,

    This is something impossible in Photoshop as if now that the process you are looking for is very personalized and can be reached only in Photoshop.

    The only way that you can save a JPEG and PNG file is by creating an action, and that's what you have already tried and does not give you an option to change the file name or destination location.

    Concerning

    Sarika

  • Photo Downloader saves the backup in JPG format and not as original Raw files in Windows 10!

    I have upgraded to Windows 10 and re-installed the bridge.  Now, when I download my pictures with photo downloader "copies" are automatically converted to jpg files and not be registered as as before RAW files!  How to stop what's goingon.  I want to save a backup copy copy THOUGHT it was!  The only way to do it now, it seems that must do two downloads - what a loss of productivity at the time!

    Today everything is working normally again.  The copied files are all CR2 (Raw) files as before.  I have no explanation for what is different or why it happened differently the other day, at least I had one of my conversion programs running in the background by mistake.  Sorry if I confused anyone.

    It seems that this isn't a problem, after all, and it was just a mistake on my side.  Sorry people!

  • PhotoShop CS6 will not save the Image in JPEG format

    I'm using Photoshop CS6. I photomerged 40 photos together, but when I try to save him, it gives me three options, psd, tiff, raw. Im trying to save it as a JPEG file, but it won't give me this option, please help!

    You should Image > duplicate this file to make a copy, then use the command layer > Flatten Image on the copy. Then save as a Jpeg.

    JPEG does not support layers or 32 bits per layer images, so it should be changed to 8 or 16 bpc through Image > Mode or Jpeg will not be an option.

    Unless you may not really need, keep your Photomerge layers original as a PSD in case you need to go back and fix anything.

    Gene

  • Save the Voucher number this Format type, mm, yy, sequence #.

    HelloW All

    I need automatic sequence number to produce with good Type, Date of coupon, good Date month year and sequence number just like

    When I save my account of the cash book with the voucher number from 20/07/2009 I need a date

    CB/P/7/2009/00001


    CB = cash book
    P = payment voucher
    7 = good month
    2009 = year
    00001 is sequence

    Any idea


    Concerning


    Wasim Ismail

    Hi popo Ismail Khan,.

    You must precede the sequence generated with the cash book, date and whatever your other needs.

    Use can use the code below:

    declare
    seq_num number;
    begin
    
        seq_num := :||'/'||:||'/'||:,'MM')||'/'||to_char(,'YYYY')||'/'||.nextval;
    
    You can then use seq_num in your application as the sequence.
    

    I hope you understand the logic.

    Modify the code according to your need replacing with the name of appropriate and point data block.

    It will be useful.

    Check the answer as useful / OK, if this can help you

    Carole

    Published by: Carole Punj 20 July 2009 00:30

    Published by: Carole Punj on July 20, 2009 00:36

    Published by: Carole Punj on July 20, 2009 00:37

  • trying to save in pdf format (or print to pdf) an individual page of a multi page pdf in reader DC

    How to save a single page of a multi page pdf file pdf file? _ I used to be able to help to "print to PDF"

    Not with the player; you will need Acrobat for that.

  • Get the value of the field that is formatted

    I have a few fields in the format number with 1 or 2 decimal places. I use these values in a string that is concatenated in another field, and I want to use the number formatted in this calculation. Using valeur.champ or field.valueAsString just gets the value as written is "412" instead of "412.0'.»

    Y at - it an easy way to get the value directly as it is formatted, or do I need to replicate the setting in shape when I am concatenating the string?

    There is no way easy in general. The routine of formatting for numbers uses the util.printf method, so for example you gave, it is easy to reproduce.

  • When I right-click to save an image it won't let me save the image otherwise that as "all files".

    When I right click on an image to make a backup because it won't let me save the image in jpeg format, what is on the menu drop-down is "all files" that records under a bunch of numbers and letters, etc. It save it as an aspx file.

    Try to add the .jpg file extension yourself if Firefox does not when you save an image file.

    If you have already saved images with an incorrect file extension, then rename them and add a .jpg file extension. Check the properties of the file via the context menu to see if that worked.

Maybe you are looking for

  • Upgrade to iOS iOS 10 8

    DDo, I need to upgrade to iOS9 before installing iOS10 on iPad?

  • Where is the speed of Youtube button is on chrome?

    On YouTube I don't know when you click on 'Settings' there is a button to make the different speed video that I don't see on Firefox or IE

  • UTM50 SSL VPN IE11 problem

    I use the SSL VPN in time. I just noticed that when I tried to pass by I logged in and tap on connect, but now I get the error: virtual failure of execution of the Passage. I tried another computer that is already running IE9 and I had no problem get

  • Media on CD

    I bought a SL510 a few months ago for my husband. We now need to uninstall and reinstall Norton Internet Security, but it seems that we do not have a CD. He cannot find a CD of Windows 7 (not that we need it now). Nothing on my list of confirmation o

  • Http to https - secure connection (SSL) filter

    Hello I got (following the examples available) successfully created and tested my custom http filter. Everything that he has worked as it should... Nice... Now - the situation has changed - and I need to do for a secure connection (https) - same doma