Print PDF document with printer's name and date/time of print

Hi,
I'm pretty new to this...
I have a PDF document and when I print it, I want the printer's name and the date/time of print to be showed on the printer's output.
I have several printers (some local and some on network) and don't necessarly use the default one. I would like the name of the printer used, to be printed on the document.
With var h = this.getField("Printer"); h.value = app.printerNames; I'm able to get the list of all printers available but I just need the one used.
For the date/time, using var f = this.getField("Today"); f.value = util.printd("mmm/d/yyyy", new Date()); gives me the date/time of when the document is open, not when the document is printed. (or maybe I'm missing something?)
I guess the date/time issue is not the major one as there is usually not much difference between the time you open the document and the time you print it.
I'm more interested in the printer's name.
I use Acrobat Pro 9 to edit my PDF document.
Can anyone help me please?
Thanks!

This project was left aside for a while... but it's now finished!
Thank you for the answers. It was helpful.
Here is a step-by-step of what I did (using Adobe Acrobat 9.5.1):
Open PDF document in Acrobat
Select Forms -> Add or Edit Fields
Add two text fields: one called "Today" for the date and one called "Printer" for the printer name
Close the form editing
Select Advanced -> Document Processing -> Set Document Actions...
Then select Document Will Print and Edit
Paste the following code:
var f = this.getField("Today"); f.value = util.printd("dd mmm yyyy - HH:MM", new Date());
var pp = this.getPrintParams();
this.getField("Printer").value = pp.printerName;
Save your PDF
Enjoy!
The date and printer name field will be automatically updated when you print the document!

Similar Messages

  • How do I print .pdf documents with reader for windows 8?

    I have Reader for windows 8.  How can I print .pdf documents with it? 

    See FAQ: Printing from Adobe Reader for Windows 8 Tablets.

  • Problem in printing pdf document with java code

    Hi All
    I want to print a pdf document with java code i have used PDFRenderer.jar to compile my code.
    Code:
    File f = new File("C:/Documents and Settings/123/Desktop/1241422767.pdf");
    FileInputStream fis = new FileInputStream(f);
    FileChannel fc = fis.getChannel();
    ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
    PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page
    PDFPrintPage pages = new PDFPrintPage(pdfFile);
    // Create Print Job
    PrinterJob pjob = PrinterJob.getPrinterJob();
    PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
    pjob.setJobName(f.getName());
    Book book = new Book();
    book.append(pages, pf, pdfFile.getNumPages());
    pjob.setPageable(book);
    // System.out.println(pjob.getPrintService());
    // Send print job to default printer
    pjob.print();
    but when i am running my program i am getting error
    Exception in thread "main" java.awt.print.PrinterException: Invalid name of PrintService.
    Please anybody, knows the solution for this error?
    Thanks In Advance
    Indira

    It seems that either there is no default printer setup or you have too many printers or no printer setup at all. Try running the following code. It should print the list of available print services.
    import java.awt.print.*;
    import javax.print.*;
    public class PrintServiceNames{
         public static void main(String args[]) throws Exception {
              PrintService[] printServices = PrinterJob.lookupPrintServices();
              int i;
              for (i = 0; i < printServices.length; i++) {
                   System.out.println("P: " + printServices);
    }From the list pick one of the print service names and set it explicitly like "printerJob.setPrintService(printServices);" and then try running the program.

  • Custom's certificate in Captivate with learner's name and date

    Hi,
    is it possible to create a learner’s course certificate for printing (PDF) without using a LMS? I thought of a javascript running at end of the course. At the beginning of the course the learner would have to be asked to enter his name and date.
    Shall it be feasible to generate such a certificate in CP (without using a LMS)? May you help me to get it done?
    I really appreciate your help.
    Best regards
    Philipp

    This might get you started.
    http://blogs.adobe.com/pdfdevjunkie/2009/12/populating_pdf_form_fields_fro.html
    You would also need some JavaScript to write the query strings to the URL.
    http://stackoverflow.com/questions/5999118/add-or-update-query-string-parameter

  • I have an HP Office Jet Pro 8500 A 917 unit. I need to print *pdf documents with larger print

    I cannot read the print (normal) when I print a pdf document.  I need to enlarge the text but I can't find any information on how to accomplish this.
    Thanks in advance.

    Hello DJohnsen,
    I am sorry that you are having trouble printing a readable .pdf document!  I would like to know a couple of things.  Is this a general .pdf print from a local PC/External Hard Drive, web content or is this an ePrint attachment?  There are a couple of different factors that could be effecting the outcome of this print job.  To name a few: resolution of the document, how the .pdf was created (format) and print settings.  I would like to give more insight; please post with more details about the print job.  Thanks! 
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Windows 7: Unable to print pdf documents with Reader 9.3.0

    I have the following problem.
    Right now we are on the way to deploy Windows 7 in our environment. Now i have come over a problem with Adobe Reader 9.3.0, Windows 7 and our older printer modells from HP (4000er and 4050er). With them I can't print out any pdf document because in reader 9.3.0 the default language level is set to "Level 3". If i change this drop down to "Level 2" I can print out the document without any problems.
    Question is: How can I permanently set this option to default to "Level 2" (see screenshot - this is found if you hit the advanced button in the printing dialog).
    Any help is apreciated...

    When using a 32-bit browser, the PDF document should open in the browser (using the Adobe Reader add-on).
    When using a 64-bit browser, it will ask you if you want to save the document, or open in Adobe Reader.
    If neither of these methods work, then it is the website that does not let you download the document (for whatever reason, e.g. server overload).
    Try if you can open this document: http://kb2.adobe.com/cps/837/cpsid_83708/attachments/Acrobat_Reader_ReleaseNote_10.1.2.pdf

  • Print PDF document with VBScript

    I am working on a script to print all the PDF documents (each doc is 1 page long) in a folder.  The script is looping through the documents, but does not appear to be queuing the documents to the printer.  Acrobat 9 Standard is what is being used.  Is this the new issue with printing from 9?  Is there a workaround?  Here is the script:
    set objAcroDoc = Wscript.CreateObject("AcroExch.AVDoc")
    set fsys = CreateObject("Scripting.FileSystemObject")
    set ffolder = fsys.GetFolder("o:\testarea")
    set folderfiles = ffolder.files
    For each item in folderfiles
         Set filen = fsys.GetFile("o:\testarea\"&item.name)
         With objAcroDoc
              .Open ("o:\testarea\"&item.name), "Test Page"
              Wscript.Echo "Printing "&item.name
              .PrintPages 1,1,3,0,0
              .Close 0
         End With
    Next
    Thank you for your help!

    From Help file:
    "The first page ....  is Page 0.       
    HTH, Reinhard

  • Printing PDF document with invisible signature

    I've got a PDF-document - created with i-text - certified with an invisible signature.
    Printing this document out of Adobe Reader 8/9 with several pages per sheet results in scrambling the second page. The preview inside the print-dialogue doesn't show any failure.
    Leaving the fist page the output performs fine.
    Has anyone made experience with similar problems printing certified/signed PDF-documents??

    Hello,
    I'm sorry I'm not able to address your question. These forums
    are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat User Forums:
    Link to
    Acrobat Forums
    Thanks!
    Michelle

  • Printing PDF document with today's date

    I am looking for a way to print the current date on the PDF
    document. Perhaps, a field/variable/marker on the PDF document
    where it will be converted to the today's date at the time the
    document is being printed.

    Hello,
    I'm sorry I'm not able to address your question. These forums
    are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat User Forums:
    Link to
    Acrobat Forums
    Thanks!
    Michelle

  • Output is reduced in size when printing PDF documents with Preview

    When I print a PDF file with Preview the printed output seems to be about 20% smaller than actual. If I print the same file with Adobe Reader for Mac the output is normal and not reduced. Other file types do not seem to have the same issue. I don't recall having this problem before I upgraded to Leopard. Any ideas?
    Thanks
    Jack

    Hi Jack,
    If you have a rummage through Preview's Preferences and look at the scale settings in the 'PDF' tab, do you have it set to respect the 100% scale factor of the PDF? This can sometimes affect the scaling when the PDF was formated for a different paper size from the one you're trying to print it on. If everything there seems to be ok, try comparing the two different expanded print diaogs which you receive in Preview and Adobe Reader, looking at things like scaling and paper-size again.
    Yang

  • I open a pdf file with club members names and emails. I used to be able to click on the members email and a outlook box would appear with the email address .

    I have a list of names and email addresses (250) and in a previous version of firefox I would go on the web page and when I would place the curser over the members email address and click it would automatically bring up an Outlook email to send box with the members email address already listed and ready for me to enter any information. This new firefox version (19) just lets the curser go across the email address and nothing happens when I click. How do I get the previous feature back?

    Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to completely disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • Creating a pdf document with both single pages and spreads

    Hi, i'm not sure if this is possible, but basically i'd like to set up a document which allows me view the first three pages as single sheets and the remainder of the document as a booklet. The reason for this is I'm sending a cover letter, CV and then a booklet via email to apply for a job, and the booklet i have created has graphics which run accross the spread. I was hoping to lay the document as such:
    1. cover letter
    2. CV
    3. Booklet front cover
    4-5. booklet spread
    6-7. booklet spread
    8-9. booklet spread
    I'm not too familiar with how to set this up (or if this is possible), could anyone point me in the right direction?

    @Dave Merchant - The pages are true spreads, I've had a go at attempting to define the page type by the master but i can't seem to get it to split the document so that the first three pages remain single. I had a go at trying to create an entire new document with the pages in in order, but not sure how to insert single pages and spreads combined within the document.
    @Test Screen Name - Do you know how i would be able to create such a document within indesign? i've had a look for some answers in the documentation but havent come accross anything yet (im on CS5). I had a go at combining the documents as the booklet and the single pages, but when i change the view options in acrobat to two page the first pages becomes a cover and the second and third are next to each other.

  • IDoc to File with different file name and data based on the IDoc header dat

    Hi,
    I got a requirement to implement IDOC to file senario.  In this the Converted file should have the file name and file content based on IDoc Header data.  Means If one of the IDoc header field value is
    'A'  - then the file name recieved by reciever system should be 'A.txt' and with the columns A  B  C  D  F.
    'B'  - then the file name recieved by reciever system should be 'B.txt' and with the columns C  D  F.
    In both the case IDoc message type is same.
    Please suggest me what i need to do to achieve this.
    Thanks in Advance. ...
    Regards
    Sri

    Hi,
    As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same.  Each IDoc has one header record with the file name. Base on the  name in the IDoc header record, file needs to be created with different columns and file name. Means..
    IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent'  'child' 'descripion'.
    IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
    IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No'  'Materail' 'Description'.
    Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
    Thanks for your all help..
    Thanks & Regards
    Sreeni

  • PSE13 and Revel issues with the notes filed and date/time when syncing.

    I extensively use the notes field in PSE13. For photos and videos this seems to get over-written when synced to Revel. For photos I can recover it by selecting 'Update Thumbnail' but during the next sync it over-writes it again.
    I also have some files where the date / time are changed when syncing with Revel, particularly video files.
    Any ideas?

    I also have this problem. The time of my iPod always changes back to the time and date of my last restore every time I sync it. And I know of others with this problem also. Perhaps it is possible that your iPod and mine have been "configured" in a way that causes this issue?

  • File Naming with parts of names and dates (substrings)

    I am trying to settle on a filenaming convention that Lightroom doesn't support, but does exist in Breezebrowser and in many database languages.
    It is a function that allows using just part of one of the other available file naming elements, instead of the full thing. This helps keep file names shorter but still meaningful.
    For example, one piece of the naming convention I'm trying for is just the sequential number generated by my camera, but without the camera specific designator. For file '_C8P7692', for example, I just want to use the '7692' part.
    This could be accomplished if I could specify in the file name builder that I only want to use those characters. It would look something like:
    SUBSTRING(filename,5,4), where 5 is the character I want to start with, and 4 is the number of characters I want to take.
    This would also address some of the other feature requests for variations on the date formats built into the file name builder.
    Paul Wasserman

    You can do that one in LR easily.
    Use "(filename or original) number suffix" instead of "filename".

Maybe you are looking for