HOW CAN I BATCH ADD ONLY THE NAME OF FILE TO PDF?

I saw a long thread about adding javascript code to insert the date, time and name of the file. but this is an old thread I can't comment.

So please help me just add the name of the file to the footer

This is the code that has been poseted by Rindhard (sp?) Copy the following adds all three... I only have the file name but everytime I try to rem a line that it does not work... I don't know obviously java script

I want to add the file name in a font of 12 pt calibri

Thanks for any help!

app.addSubMenu ({cName: "Footer", cUser: "set/remove a footer," cParent: "File", Nonprofits: 20});

app.addMenuItem ({cName: "Set Date time (Filename) ', cParent: 'Footer', cExec:" SetFooter (1) "" ""});
app.addMenuItem ({cName: "-> Set Date... centered", cParent: "Footer", cExec: "SetFooter (2)" ""});
app.addMenuItem ({cName: "-> Set Date... right", cParent: "Footer", cExec: ' SetFooter (3) "" "});
app.addMenuItem ({cName: "centered Set Page", cParent: "Footer", cExec: "SetFooter (4)" "" "});
app.addMenuItem ({cName: "-> Set Page to the right", cParent: "Footer", cExec: ' SetFooter (5) "" "});
app.addMenuItem ({cName: "Set two", cParent: "Footer", cExec: ' SetFooter (9) "" "});

app.addMenuItem ({cName: "-", cParent: "Footer", cExec: "{}"});

app.addMenuItem ({cName: "Delete both", cParent: "Footer", cExec: ' RemoveFooter (9) "" "});
app.addMenuItem ({cName: "remove Date time (Filename) ', cParent: 'Footer', cExec:" RemoveFooter (1) "" ""});
app.addMenuItem ({cName: "Delete the Page", cParent: "Footer", cExec: "RemoveFooter (4)" ""});


Set/remove a footer
function SetFooter (ARG)
{
var re = /. * \/|\.pdf$/ig;
var FileNM = this.path.replace(re,"") + ".pdf";
var Path = this.path;
var AcDate = new Date();
var AcDateFormat = "dd/mmm/yyyy hh: mm".
var Box2Width = 50
for (variety p = 0; p < this.numPages; p ++)
{
aRect var = this.getPageBox ("Crop", p);
var TotWidth = aRect [2] - aRect [0]
If (ARG < = 3 |) ARG IS 9)
{var fd = this.addField ("xftDate", "text", p, [30,15, TotWidth-30-30, 30]);}
FD. Value = util.printd (AcDateFormat, AcDate) + "('" + FileNM + ")"; "
fd.textSize = 6; FD. ReadOnly = true;
If (ARG == 1) {fd.alignment = "left"};
If (ARG == 2) {fd.alignment = 'center'};
If (ARG == 3) {fd.alignment = "right"};
}
If (ARG == 4 |) ARG == 5 | ARG IS 9)
{var bStart =(TotWidth/2)-(Box2Width/2)
var bEnd = ((TotWidth/2) + (Box2Width/2))
If (ARG == 5) {var bStart =(TotWidth-Box2Width-30); var bEnd =(TotWidth-30) ;}}
FP var = 'text', this.addField (String ("xftPage" + p + 1) p, [Bdemarrer, 30, bend, 15]);
FP. Value = "Page:" + String (p + 1) + "/" + this.numPages; "»
fp.textSize = 6;  FP. ReadOnly = true;
FP. Alignment = "Center";
}
}
}

function RemoveFooter (ARG)
{
If (ARG < = 3 |) ARG == 9) {var x = this.removeField ("xftDate") ;}
If (ARG == 4 |) ARG IS 9)
{for (var p = 0; p < this.numPages; p ++)}
{var x = this.removeField (String("xftPage"+p+1)) ;}
}
}

Not sure what you mean by "-30 high and - 30 from the right". It's not supposed to not be left aligned?

In any case, try this one:

this.addWatermarkFromText ({"cText: this.documentFileName.replace(/\.pdf$/i," ""}), cFont: "Calibri", nFontSize: 12,.

({nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: 30 nVertValue: 30});

If you want to further customize, locate the addWatermarkFromText method in the reference files. All parameters are specified in the it.

Tags: Acrobat

Similar Questions

  • You want to search ONLY the names of files in the Explorer of Windows 7?

    I want to usually just looking for a word "in a file name& record' - and can often give a date of the range. In the Explorer of Windows 7, as soon as I type the word, I get all the files that contain the word in the content, as well.  How can I have search only the file or folder name?

    I also don't use 'my documents' or 'libraries '... I create my own subfolders - and usually on a stick... disc so I don't really understand "crawler" or if it is relevant to how I organize my files.

    I miss the Windows XP search feature in the Explorer of Windows 7!

    No need for anything that it is complicated.  Simply type what you are looking for.  If it's in the name of the file, these results will be returned first, above all results corresponding to your searchinside of the file term.  Easy.

    Without indexing places such as stick readers can always be sought, but take a little more time looking for (like XP).

    If it solves your problem, click on the link "Propose as answer" below and vote as useful by clicking on the green triangle for the lelft. Thank you!

  • How to print a list of the names of files in a folder?

    I want only the name, date and type under the folder to print, not the content.  Thank you.

    Here are two ways to list them:

    Using Windows Explorer, navigate to the source folder and press Ctrl + A to select all items. Hold down the SHIFT key, right-click on the selection and choose copy in the path. Your treatment of text or spreadsheet and paste (Ctrl + V), list open to it and print it.

    2. open a run window (Windows Logo key + R), type cmd /k dir | clip (note the four spaces) and press ENTER. Paste (Ctrl + V) into Notepad, then print it out.

  • HDR-CX405 how to stop recording double, only the required mp4 files.

    Hello Sony,

    Yesterday I bought HDR-CX405. My question is, how to stop double registration? Only the required mp4 files.

    The two file created on the card then than shooing video scene - AVCHD and mp4.

    I don't want AVCHD (file too big), I want to just file mp4 only.

    Dual video REC

  • I deleted the server shows always upward when I add "/" after the name of file

    First of all a head upwards, you will be probably horrified when you visit my site, because it is outdated for many years. I hope that you can forget about that and just help me with the particular problem, I am trying to solve today. In other words, I edited all the footers on each page of the site to not display my phone number, but the old page still displaying the phone number appears when you add a "/" after the URL. For example:

    http://www.newyorkmultimedia.com/photo present the edited page, with only the enamel in the footer: https://www.dropbox.com/s/hoyrbl47sjys0cg/Screenshot%202016-01-21%2019.31.55.png?dl=0

    But if I add "/" at the end of the URL, as follows: http://www.newyorkmultimedia.com/photo/

    It shows the old version of the page, which is more on the server: https://www.dropbox.com/s/pb9wcez1g4mwbxf/Screenshot%202016-01-21%2019.35.55.png?dl=0

    Here is a screenshot of the contents of the server, so you can see what I mean: https://www.dropbox.com/s/1nzls0l4bn0w7rv/Screenshot%202016-01-21%2019.36.57.png?dl=0

    Does anyone have a sense of what is happening, and how can I solve this problem? (Of course, I need to completely rebuild the site, but in the meantime...)

    Thank you very much to all those who can helpl.

    We don't know how you have organized your site, but looking at the screenshot of the contents of your server, you have a page named animation.html in the root of the site that was changed on 26/12/15. You also have a folder named animation that contains index.html that changed on 09/04/11.

    When you add a slash to a URL, the server automatically uses the default file in this folder (directory). It seems that the server has been configured to serve as animation.html in the root of the site as http://www.newyorkmultimedia.com/animation. But when the slash is added, the server automatically seeks index.html.

    The simple solution is to edit the index.html so footer. However, if the content of animation.html is the same as animation/index.html, you must examine the way in which the server has been configured. It is not a configuration I've met before.

  • How can I get emails from the Eudora backup files?

    In preparation for a full charge of Windows, I stored all the Eudora data files (e-mails, etc.) on a removable drive. The new version (v7), Eudora does not accept them. I would switch to Thunderbird. There is no version of Eudora running on my computer now if (probably) Thunderbird can't find them. Is it possible to load the emails stored in Thunderbird?

    The latest version of Eudora (Open Source Edition) was really Thunderbird with some variations and extensions. If that could not access your Eudora files, it is possible that Thunderbird is. It is possible to consider that the older versions of Eudora (who are 'real' or 'original' Eudora code) can be downloaded if you can use one of these old emails and/or perhaps export e-mails in a format as Thunderbird here. A lot of people still use these older versions of Eudora for daily email, but I would not recommend that as they are really old.

  • Show the name of file in PDF file

    Hi, hoping for help on what I think is quite a simple question.

    I want to create a single blank page PDF file that has a text field automatically and dynamically finished based on the file name of the pdf document. Thus, for example, if the file is named "My sample file.pdf", the pdf file is displayed "My sample file.pdf" and that is all. If I rename the pdf file in Windows Explorer to "My renamed file.pdf", when I then open the renamed "My file.pdf" file appears.

    I would then insert this PDF a page in an array of existing pdf files as their new No. 1 page to actually be a title for each page created automatically based on their current file name.

    My research suggests that is possible using Javascript in a text field or a form field (although I prefer the text field), however, that I have no experience with Javascript or its implementation of Acrobat, is impossible for me to do. The closest I got is a script that puts the name of the file in the background. Unfortunately this script maintains the new file name that comes to be superimposed on the old watermark of filename, rather that update. For more information the script was: -.

    this.addWatermarkFromText({)

    cText: this.documentFileName,.

    nTextAlign: app.constants.align.center,

    nHorizAlign: app.constants.align.center,

    nVertAlign: app.constants.align.bottom,

    nFontSize: 12,.

    ({nVertValue: 12});

    Ideally, I'd like the script to remove the file extension and if possible to split the output on two lines based on the file name part preceding / fact following a comma in the name of the file (which she would also deprive). For example, if one had a file named 'my sample file created the Monday.pdf', it would display as: -.

    My sample file

    created Monday

    If anyone has any ideas on this, it would be greatly appreciated.

    Regards and thanks in advance.

    Malcolm Mahr

    Add the following JavaScript to the document level:

    // Document-level JavaScript code
    (function () {
    
        // Get the file name of this document
        fn = documentFileName;
    
        // Get rid of the PDF extension
        fn = fn.replace(/\.pdf$/i, "");
    
        // Replace any comma/space combinations with a carriage return
        fn = fn.replace(/\, /g, "\r");
    
        // Set the field value
        getField("fn").value = fn;
    
    })();
    

    Replace "fn" in the statement of getField with the name of your multiline text field. This code runs when the form is opened. If you want to be updated when the file is saved, you can also place in case the Document were spared. Note that some operating systems and other things may have a problem with a comma in the name of the file. Underscore would be a safe alternative.

  • How can smartphones blackBerry I change the name of connection on an email account?

    The connection on my e-mail account name is the complete e-mail address of the account. BlackBerry Torcch does not allow me to enter the e-mail address as a login name. How to do that Ifix?

    It is perhaps the set of instructions that you must have set up correctly.

    http://BTSC.webapps.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB03133

  • How can I remember passswords and the names of the computer?

    When the computer is new, he asked if I wanted to that it to remember passwords, not more.

    It would also have the logins list, at the 1st letter was printed, not more.

    Assuming that your using ie9?

    Open ie9,

    Click on the gear in the top right, symbol

    Click on Internet options,

    Go to the "content" section and the auto complete list down.

    Confirm that the settings are correct.

    Reset ie9,

    Do not save personal settings and use the recommended and implemented.

    Export your favorites for the file and save it to your desktop first if you can import it after.

    http://support.Microsoft.com/kb/923737

  • How can I get rid of the blob.bin files in vista?

    60 GB, 80 GB, now used by this file--what can we do? NB. I am not familiar with computer jargon!

    Please follow the steps below in order to get to step 3.

    1. Open CMD
    2. cd\   (to return to the root/system directory)
    3. CD Windows\Winsxs
    4. C:\>Windows\Winsxs >Net stop trustedinstaller (press enter)

    Also, when you have shown an asterisk in order subsequently lines, do I need to type my password each time that at this time?
     -No, asterisk defines all the files and folder in this directory. You need not write down your password. Just type as it is.
  • How can I get rid of the zipped compressed files?

    Whenever I try to make a new folder it tells me to make a zipped compressed folder and I don't know how to stop it. He began doing this a few days ago and I did not install anything. I would go back to the default value for new records instead of zipped compressed folders.

    You have lost the ability to create a new "folder".  You have installed chrome? It's looking like a recent update of chromium may be the cause. Here are two patches.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
  • Want to copy and paste the names of files only, not the content

    I have organized hundreds of files in several folders of dozens and that you must first create a list or map of all files.  I want only the names of files, not other thing.  I found some freeware that seems designed to do this, but am reluctant to download.  Can it be done without additional software?  If I can't do the regular windows environment, someone suggest what software is the easiest to achieve?

    There are a lot of reliable freeware websites.  What program have you found, and this web site is on?

    To do the work of the normal Windows environment, click Start > all programs > Accessories > command prompt and enter these commands:

    CD /d "" path ".
    dir/b/s >"" file
    ".

    where:

    path = full path to the file
       file = name of the file to write

    For example, to create a list of files in My Documents and write it to a file named My Documents.txt :

    CD/d "C:\Documents and Settings\Utilisateur\Mes Documents"
    dir/b/s > "My Documents.txt."

    The /s parameter lists the files in the selected folder and all its subfolders.  The omit if you want just the files in the selected folder. Boulder computer Maven
    Most Microsoft Valuable Professional

  • How can I add only the fields whose value is greater than an amount established in a calculation?

    I have a form of Life Cycle PDF Creator with user input fields.  I want to add ONLY the items that are more than $25. Any help would be appreciated.

    Thank you.

    I fixed it for you - YAY

    https://www.dropbox.com/s/zbt89nxk6zv0uq2/EQUALIZERx%289-15%29v2%20data%20ADDED%2001%20DON E.pdf? dl = 0

    I sympathize with your feeling about MS EXCEL, but ultimately, LiveCycle (and the complex needs of coding) are the only way to provide solutions that cannot be ruined by other people.

    I always struggle with 'for' loops - they are not nearly as intuitive that 'if, else' built BUT mastering all the two of these buildings gives you 95% of the functionality you could out EXCEL.

    Articles/examples of BRINKMAN (google page break) and NIALL (google ensure dynamic) helped a lot to improve my command of LiveCycle Designer.

  • How can I get rid of the program: Win32 / Torpump virus/malware microsft security only partially deleted scannner?

    How can I get rid of the program: Win32 / Torpump virus/malware microsft security only partially deleted scannner?

    Hello

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

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

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

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

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    ======================================

    If necessary AFTER you are sure that the machine is clean of any malware. (DO NOT USE IF)
    MALWARE IS STILL PRESENT).

    You can try a repair install or an upgrade in Place.

    You can use another DVD that aren't copy protected but you you need to own
    Product key. It must be the same version 32 or 64 BIT Vista OEM. Also the system
    machine to usually sell the cheap disk since you already own Windows. Don't forget to make a
    good backup or 3 (security in redundancy).

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-happened-to-the-recovery-console

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    =======================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 to get infections of virus and spyware. Seehttp://www.microsoft.com/protect/support/default.mspx for more details. For international information, check your subsidiary local Support site.

    I hope this helps.

  • How can I view all of the file name when you download a file as an attachment under the surface of windows 8 pro

    I want to see the name of a file before I download it as an attachment, but the names of files in the file download blue box only see the part of the name. I click on "View files flaps" but who only works in windows Explorer. I need the full name in the window of blue line screen upload. How then can I list instead of several columns of short filenames?

    Thank you

    Bess in Carrollton, Texas

    Hi Bess,

    It would be better that you could provide more information on this issue.

    What application you are trying to download the file? Is any e-mail Application or SkyDrive?

    If you try to upload a file with a long file name to the SkyDrive or Mail application, it wouldn't show the full name of the file when the download of the file. It shows only a part of the name of the file. It comes to the design of these applications.

    To find the full file name, the only option is to rename the name of the file to a short name and then download the files on the machine or SkyDrive App.

    I hope this helps.

Maybe you are looking for

  • When Firefox starts sync?

    I would like to know when FF introduces sync. After initial start-up, to stop, sometimes in between. I use Noscript and have he undertook: config to propagate its parameters through synchronization. Yet repeatedly, to go to another machine, I find th

  • Error 80072EfE

    Hello I recently inadvertently downloaded some type of virus and had to recover my computer to an earlier date in order to restore it to operational status. Since then, I get the error above with respect to Windows updates and I'm not sure how to fix

  • runtime error when you add a softmotion axis

    Hi all I am running labVIEW 2010 with the development softMotion, creating a compactRIO application module. When you try to add an axis softMotion in Project Explorer I get a window with the message "Microsoft Visual c ++ runtime library." Run the er

  • Event Viewer-where can I get the info on it?

    I recently had someone remote finds my computer and they looked at my ' Event Viewer/system ' and it came with TONS of errors. Is it possible to fix these or a place I can get information on their subject?

  • Olympus PEN - F raw files

    Just bought an Olympus PEN - F and can not open the .orf nor with Bridge and Camera Raw files. Hope Apple Aperture could help.