How to auto add in pdf filename (shown in footer) by using Java Script?

In order to have nice tracking a document, I want to print the file name as a header or footer when printing the documents. 
How can this be done?  
Found a perfectly nice post related to same issue
 http://forums.adobe.com/thread/302996 
 (Many thanks on every contribuitors inside that posts)  
 In the above post,  found that ##Reinhard had shared some well nice scripts for "enable to put in filename in the footer for every document, just by 1 simple click in each documents"  
For the time being, 
if i would like to generate a script that allowing 
1) Only adding / showning the pdf filename in the footer
2) Auto Run/Execute on this script for all documents, which means without any click but it will auto showing the "filename at footer" when any document opening.  
Hope any experts can give a help on this.   
PS: Currently using Adobe Acrobat 10 & Reader 11 // OS = Windows 7 
Many thanks ^^

My code for above method is Floor #2
var FileNM = this.documentFileName;
for (var p = 0; p < this.numPages; p++)
var fd = this.addField("xftDate", "text", p, [30,15, 290,30]);
fd.textSize=5; fd.value = " (" + FileNM +")";
It works for me & my PC, however I unable to applied same things into a JavaScript.js file
Hope any experts could help and advice.
Many thanks.

Similar Messages

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • How to fetch Properties of all Survey Lists from site collection using Java Script in SharePoint 2013

    Hi,
    I am trying to fetch properties of all lists of "Survey Type" from my site collection in SharePoint 2013 using script editor web part. I am able to fetch properties of one list by mentioning its name explicitly in code but not all survey
    list.
    My task is to display Survey name , description ,Time created and URLs of all survey lists using java script in script editor web part.
    And let me know , if there is any other OOB feature of SharePoint 2013 to achieve the same. 
    Here is the code  :
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
    function sharePointReady() {
         GetSurveyList();
     function GetSurveyList() {
            var spListTitle = " List Name";
             var clientContext = new SP.ClientContext.get_current();
            var oWeb = clientContext.get_web();
            this.surveyList = oWeb.get_lists().getByTitle(spListTitle);
            clientContext.load(surveyList);
            clientContext.executeQueryAsync(Function.createDelegate(this, this.GetListProperties),Function.createDelegate(this, this.onFailure));
     function GetListProperties() {
            $("#SurveyList").text("");
            var surveyTable = "<table border=1>";
            surveyTable = surveyTable.concat("<tr><td>Survey Name</td>");
            surveyTable = surveyTable.concat("<td>Survey Description</td>");
            surveyTable = surveyTable.concat("<td>Time Created</td>");
            surveyTable = surveyTable.concat("<tr><td>" + surveyList.get_title() + "</td>");
            surveyTable = surveyTable.concat("<td>" + surveyList.get_description() + "</td>");
            surveyTable = surveyTable.concat("<td>" + surveyList.get_created().format("MM/dd/yyyy hh:mm tt")+ "</td>");
                 surveyTable = surveyTable.concat("</table>");
            $("#SurveyList").append(surveyTable);
        function onFailure(sender, args) {
            alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    <div id="SurveyList"></div>

    Shifa,
    Please use search result webpart or content query webpart to list all survey list.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How do I add a pdf or jpeg of my company logo to my signature on emails?

    How do I add a pdf or jpeg of my company logo to my signature on emails I send from my iPad2?

    Read this.
    http://howto.cnet.com/8301-11310_39-20017611-285/add-a-sexy-html-signature-to-ip hone-e-mails/

  • I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document, I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document

    I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document, I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document

    What do you want to do specifically.  They are two different document formats - one is PDF, the other DOC or DOCX.  In what way do you wish to "add" ad PDF to a word document. You can embed a mini version within a document (copy it and paste it from within the x.doc) but that's a pretty hokey looking solution.
    Oh, its mostly irrelevant if its office 2004,8 or 11 - they all do this more or less the same way.
    G

  • How do I add a PDF file for download to my iWeb page?

    How do I add a PDF file for download to my iWeb page?
    I have created one using Apples Pages program.
    Thanks!

    Hi-
    You need to create a text link to the file...
    On your page, type a word that you want to be the link... then select the word, and in the inspector pane, click the link tab (the arrow on the far right) and check "enable as hyperlink." Then choose "file" from the dropdown menu and a chooser box will open for you to locate the file on your hard drive.
    Choose the file by clicking "open" once it's located. Then the next time you publish, the file will be uploaded and linked to!
    Hope this helps... I think I got all the steps in there!

  • How do I add a "PDF printer"  print to PDF so that I can create PDFs from any source I can print ?

    How do I add a "PDF printer"  print to PDF so that I can create PDFs from any source I can print ?
    I am using ADOBE Reader X Thanks

    Pat;  using Windows you can create a "PDF printer" which is a virtual device that you can select when you want to create an Adobe PDF file from anything you normally would print to hardcopy.  As an example if I were on a webpage article that spanned two or three pages so a screen capture wouldn't really work, if I had a "Adobe PDF Printer" I would select that as my default printer and then print the webpage article.  Instead of the webpage article going to a real printer and producing hardcopy, the Adobe PDF printer would ask me for a file name and then "print" the file by creating an Adobe PDF file.  Does that help ?  Best regards,  Doug

  • How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window

    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?

    user11016624 wrote:
    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?
    Please see:
    http://www.oraclebusinessapps.com/2008/04/28/load-pdf-file-attachment-using-api/
    http://www.oracleerpappsguide.com/2011/04/attachment-in-oracle-application.html
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_ATTACHED_DOCUMENTS_PKG&c_owner=APPS&c_type=PACKAGE
    Thanks,
    Hussein

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How do I add an objectclass to existing LDAP server entry using an ldif file?

    I am trying to fix an LDAP server that has been operating with schema check off. I need to add an objectclass to the groups so that some attributes that have been added to the groups will be "legal." From the documentation, the changetype: modify will allow the changing/adding of attributes that are already a part of the schema objects that define the entry. It does not look like I can add an objectclass with the modify operation.
    If this is the case, then how do I add an objectclass to an existing entry? Using the GUI is not possible since the directory server in question is not being managed with an admin server. Please tell me that I do not have to delete the groups and import them again with an LDIF file that has the new objectclass added.
    Kent

    See this post:
    http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000636B0000&USEARCHCONTEXT_CATEGORY_0=_21_%24_7_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_21_%24_7_&UCATEGORY_S=0

  • How do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    how do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    Save as is back again - available - in Mavericks by hitting the Option key while in the app's File menu (duplicate will change to save as).

  • How do i print to pdf from excel? I am using Windows 8.1 and Office 365 (new)

    How do i print to pdf from excel? I am using Windows 8.1 and Office 365 (new)

    Please see Huge lag in games on bootcamp as a reference. The linked thread is for a GT750m.
    Since there are no mid-2013 Retina models (as per Apple - Support - Technical Specifications), assuming this is your Mac - MacBook Pro (Retina, 15-inch, Late 2013) - Technical Specifications - the same should work for you.

  • How to all add all category videos to itunes?, how to all add all category videos to itunes? i use windows.

    how to all add all category videos to itunes?, how to all add all category videos to itunes? i use windows.

    What do you mean by "all category videos"?

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • How to use Java Script in jspx pages of ADF Faces?

    I wanna invoke an Applet in a jspx using Java Script...
    How can I do this? :)

    check my other post..that's to know how to use js in jsf pages...not to invoke applet..
    Re: how to Add inline JavaScript to a Page 11G

Maybe you are looking for

  • Mail 3.6 hangs/crashes on launch

    Hi there, Hope you guys can help me out a bit here. Every single time I launch mail.app, it hangs. It doesn't crash, it just hangs. In the Force Quit applications window, all I see is "Mail (not responding)". I can force it to quit, at which point th

  • Reg. BADI for MIGO

    Hi Experts,         Could you please clarify my Doubts , I am trying use the BADI MB_MIGO_BADI and trying to enchance\implement the POST_DOCUMENT method.          In which I need to change the movement type if some condition met . I am able to access

  • Searching for NULL with a FindPanel?

    Can I search for null values in my dataset using the FindPanel InfoBus control? From what I can gather, it actually puts together a primitive kind of where clause that I can trick to a certain extent (eg entering a criteria of "ANY (value, value,...)

  • Active Directory Attributes

    Can the universe designer read in Active Directory attributes?  I'm trying to apply row-level security to allow members of one group (by department ID, which is stored in an attribute in AD) permission to only view their department's information.  An

  • Troubleshoot VPN, Help me, Please

    I had VPN site to site between HCM and Singapo  HCM : Fortigate 80C Singapo : Cisco 2900 Before,no problems. Today, I can't ping from ip private of Singapo ( 192.168.4.0/24 ) to ip private of HCM (192.168.1.0/25). ->>> 0/5  But, If I ping from HCM -