How to Display Windows Username in a PDF File?

I have a PDF form, it has a Name and a Date field, I setup the Date to display todays Date automatically using JavaScript. Now since my users have unique Windows login names. I want to automatically display there username or Windows name in the Name field. Can I do this using JavaScript? or is there a different way? Any help would be greatly appreciated.

Here's a barebones script that you can call from a script in your form to retrieve the login name of the user:
// Folder-level JavaScript function
var getLoginName = app.trustedFunction(
    function () {
        // Get and return the user's login name
        app.beginPriv();
        return identity.loginName;
        app.EndPriv();
This needs to be included in a JavaScript file that's installed in the correct location. It's just a text file, so you can create/edit it with a text editor, but make sure the extension is ".js". For more information about how to determine where to place the file, see: http://acrobatusers.com/tutorials/2006/folder_level_scripts
More information on all of this is in the Acrobat JavaScript reference: http://www.adobe.com/devnet/acrobat/javascript.html
To populate a text field with the login name, do something like:
// Populate field with loginName
getField("text1").value = getLoginName();
Change "text1" with the actual name of the field in your form. You can place this code in a document-level JavaScript so it executes when the form is opened.
Note that all of this code is the bare minimum, and you may want to expand it to check for errors, etc.

Similar Messages

  • How to get windows username printed on each page irrespective of application? we have cm6030f.

    How to get windows username printed on each page irrespective of application? we have HP CM6030F.

    Hi,
    Normally, you will receive a Windows Azure Pass from your local Windows Azure team. Please try to contact your local Windows Azure contact (http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0
    Also, you could see this page
    http://www.windowsazurepass.com/AzureU/AcademicFAQ and apply the free trial azure via (http://www.windowsazurepass.com/AzureU/).
    Q: I am a student. Can I apply for a pass?                     
    A: Windows Azure Educator Grants are only for valid faculty. If your faculty has been awarded a Windows Azure Educator Grant, you will be able to get a pass through him/her for you coursework. If you are interested in learning more about Windows Azure,
    we encourage you to share these Educator Grants with your faculty or sign up for the FREE 3-month trial offer. 
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to display cyrillic characters in a PDF

    I am fairly green in terms of representing text in PDF documents and need some assistance. My main question is how do I represent Cyrillic characters in PDF files.
    I know the basics of how to represent text in PDF files and the PostScript commands to use. I know that bytes written to the file in the range of 0 to 255 will print correctly when using the correct encoding (we are using the WinAnsiEncoding). What I cannot seem to figure out is how to represent extended character sets and different glyphs (such as those used in the Cyrillic alphabet) in a PDF file. Do I need to use CID fonts and CMaps?
    Here is an example of the text I understand how to print:
    stream
    0.00000000 0.00000000 0.00000000 RG
    0.00000000 0.00000000 0.00000000 rg
    BT
    /Helvetica 14 Tf
    7.2 768.96 Td
    (Hello World!) Tj
    ET
    endstream
    I'm really not clear on how to represent any of the Chinese or Japanese fonts either, so really any help here is appreciated. Any examples are appreciated as well.
    Thanks!

    You don't need to use CIDFonts and CMaps for Cyrillic (though you can). The crucial thing to realise is that displaying Latin1 (that is, English and related text) leaves you in a very simple corner of PDF. Doing anything with other encodings instantly makes a project more complex, perhaps 10 times more complex. Far eastern fonts perhaps 10 times more complex again.
    The principle is the same for all of them. To use any character you need
    1. A font containing that character. PDF has built in fonts containing Latin1, such as Helvetica, but there is no such luxury for other encodings.
    2. The right (license) to embed the font.
    3. The technical ability to embed the font. In many case this isn't just a case of embedding a file as a stream, but also you need to analyse the tables in the font, and sometimes trim or modify them.
    4. An encoding for the font.
    5. Text streams which use character positions in the encoding to show the text.
    Basically you need to read and read and reread the chapter on text, and its references (such as font formats). This will become your constant friend or tormenter for the many months of the project.
    If you don't like the sound of that, or it doesn't make ecomomic sense to do that, there are many PDF libraries which have taken the necessary months or years to do this.

  • How to display archive link picture in pdf

    Hi, Experts
      I create a pdf form using tcode SFP, and create a graphics element in the form,
    but i don't want to use the MIME object to disaplay,because our pictures are archive link.
    How to display archive link picture in pdf form?
    Thanks you very much!
    Ken.li
    Edited by: Ken.Li on Nov 17, 2009 3:50 AM
    Edited by: Ken.Li on Nov 17, 2009 4:30 AM

    Hello,
    I can recommend you go through the tutorial called How Tou2026 Integrate ADOBE form on WebdynPro for ABAP and Deploy it on portal by Bhawanidutt Dabral. Ignore the fact it uses WD, I have tried the proposed solution how to load in the picture on a simple offline/ print form. Look around for this tutorial.
    It propose to use the FM as follows:
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
        EXPORTING
          p_object       = c_graphics
          p_name         = lv_pernr1
          p_id           = c_bmap
          p_btype        = c_bcol
        RECEIVING
          p_bmp          = ls_z_if_test_cv-im_photo
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
    It passes the picture as XSTRING into the form and there you bind this data stream to a Image Field (not an Image!!! check this twice). Don´t forget to check the checbox to include picture data into the form file.
    Hope this helps, Otto

  • How to use deafult pdf viewer ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ?

    please tell me how to use default pdf reader in firefox ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ? pdf not open when i give ok with preview in firefox its not open its offer again same message

    In order to change the default pdf reader please see: [[View PDF files in Firefox without downloading them]]
    In order to change the file association: [[Applications panel - Set how Firefox handles different types of files]]

  • Possible to have a text field display current path of the pdf file?

    Would it be possible to display the current (windows) path of the pdf file in the page footer? Something we do in Word & AutoCAD... is it possible & how in Livecycle?
    thanks

    You can get the path of the current doc by using the command:
    event.target.path
    The filename can be retrieved by using:
    event.target.filename
    You can set these in a field on the master page so that it will appear as you want at bottom of every page.

  • How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?

    How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?  Get error "There was an error opening this document. Access denied".  Disabling Protected Mode in Reader doesn’t always work.
    McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683

    If Reader ISN'T in the list of prpgrams to open with, click "Browse"
    In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
    Select "AcroRd32.exe" and click "Open"
    Make sure "Always use the selected program to open this kind of file" is checked and click "OK".

  • How can I rotate view of a pdf file, like in earlier versions?

      How can I rotate view of a pdf file, like in earlier versions?

    Adobe Reader Touch (Windows Store app with "Modern" UI) for Windows 8 is a relatively new product, which was introduced in December 2012.  Adobe Reader XI, X, or older is a completely separate product - a traditional desktop app with classic UI.  The desktop version has been available in the market for 20 years (!!) and it does not share any common components with Adobe Reader Touch.
    Adobe Reader Touch does not support page (view) rotation yet.
    For Windows 8, you can download and install Adobe Reader XI from the link below.
    http://get.adobe.com/reader/enterprise/
    For Windows RT, you can use Microsoft Reader (built-in PDF viewer), instead.

  • How do I get firefox to open pdf files with Adobe reader instead of google?

    Firefox is unsucessfully using google to open pdf files.  How do I get firefox to open pdf files with Adobe reader?
    Message was edited by: veeryTalonted

    "Google" is a search engine (website) and NOT (repeat: NOT) a PDF viewer. It can't and won't open PDFs in any real or imaginable way.
    Firefox added their own proprietary PDF viewer with version 20 - they're on 21 now. I'll be the first to admit "it sucks". You CAN'T fill in PDF forms with it, and you can't email them from the page like with Opera, Safari or Chrome (which use the reader plug-in still).
    Unfortunately, the ONLY option you have now that they've added it and killed the ability for the Reader plug-in to work with Firefox, is Tools>Options>Applications - select Portable Document Format(PDF) and choose "Use Adobe Reader (Default)". What that will do is FORCE Firefox to download the PDF instead of opening it in their terrible PDF viewer in the browser window.
    Or... use one of the other browsers I mentioned. They're all free.

  • Is there something comparable to My Documents in Windows that will allow pdf files in Quickoffice to appear?

    I have an iPad 2. I need to send pdf files from Quickoffice to my school's copy center for duplication to distribute to my students. When I click on choose files at the SUNY's copy center, I am only able to access Camera Roll and Photo Stream. Is there something comparable to My Documents in Windows that will allow pdf files in Quickoffice to appear?

    Perhaps I am not clearly stating my problem. I always used my desktop or laptop to send files that were handouts to the copy center since I do not use a textbook for one English class. Both crashed within a two-day span so until I can get one fixed, I am hoping to use the iPad. I have all my files saved as PDF files in my email. I have added the Quickoffice app and transferred next week files from school email to Quickoffice. When I access SUNY's website to send my files to be copied and click on choose file, all that is there are photos. If there is not a central location in iOS, then how would I manually sync the files in Quickoffice to whatever is allowing the photo files to appear?

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • How do I get a print to pdf file option from Word and PP?

    I have windows vista. How do I get a print to pdf file option from Word and PP?

    Do you own Acrobat? If so what version? If not what version of Word and PP do you have? Newer versions contain non-Adobe software for creating pdfs. If you do not own Acrobat that it would be best to check in a Microsoft forum on how to use Word to create pdfs.

  • How to read the and Write the PDF file give me the solution

    Hi all,
    How to read the and Write the PDF file give me the solution
    My coding is
    import java.io.File;
    import com.asprise.util.pdf.PDFImageWriter;
    import com.asprise.util.pdf.PDFReader;
    import java.io.*;
    import java.io.FileOutputStream;
    public class example {
    // public example() {
         public static void main(String a[])
              try
              PDFReader reader = new PDFReader(new File("C:\\AsprisePDF-DevGuide.pdf"));
                   reader.open(); // open the file.
                   int pages = reader.getNumberOfPages();
                   for(int i=0; i < pages; i++) {
                   String text = reader.extractTextFromPage(i);
                   System.out.println("Page " + i + ": " + text);
    // perform other operations on pages.
    PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("c:\\new11.pdf"));
                   writer.open();
                   writer.addImage("C:\\sam.doc");
                   writer.close();
                   System.out.println("DONE.");
    reader.close();
              catch(Exception e){System.out.println("error:"+e);
              e.printStackTrace();
    I get the pdf content then it returns the string value but ther is no option to write the string to PDF, and we only add a image file to PDF,but i want to know how to wrote the string value to PDF file,
    Please give response immtly
    i am waiting for your reply.
    thanks,
    Suresh.G

    I have some question flow
    How library to use this code.
    I try runing but have not libary.
    Please send me it'library
    Thank you very much!

  • How do I download and print a pdf file in osx mountain lion

    How do I download and print a pdf file?

    control click on your PDF to download option
    Open it on your desktop Command-P is the short cut for print option.

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

Maybe you are looking for