Printing a PDF in Java w/ print dialog - How to do it?

Hi, here is what I'm trying to accomplish:
I need to have a menu item named "Print" that is just a standard Print menu, like how you'd see if you selected "Print" in IE or Excel or Word. Something that lets you pick which printer you want to use, whether you have landscape or portrait printing, and whether its duplexed printing or not. And also it should let you select what printer you want to use.
Does Java have something that lets you do this?
Then, I need to be able to print multiple PDF files that the user has selected PRIOR to selecting the "Print" option. The filenames of these pdf files will be stored in an array.
Anyone know how to accomplish this? Thanks so much in advance. I can be emailed via [email protected], or post here.

Google for Java Print API.

Similar Messages

  • How to print a Pdf from Java script

    Hi,
    I need to print a pdf from java script. In java script i have url of pdf. Is there any way to print pdf from java script?
    I am able to print word doc by ActiveX. is there any activeX or something else which do the same thing for pdf?
    Any help heartily esteemed to me.
    Thanks
    Kamlesh Sharma

    you are cross postin .. your thread has been answered in the jsp jstl forums

  • When i print a pdf from preview it prints strange characters - it looks fine on screen

    when i print a pdf from preview it prints strange characters - it looks fine on screen

    You can also try opening the PDF with preview, then doing a copy and paste to TextEdit and printing from there.
    Adobe makes it easier, but you do have software to accomplish this.
    Only download Adobe reader from this site, to avoid "fakes/spoofs/malware" that will cause damage to your machine.
    http://www.adobe.com/support/downloads/product.jsp?platform=macintosh&product=10
    Hope this helps

  • Print a pdf directly to a printer to avoid repeated ripping of the same image

    Hi,
    I have created a 3.000 pages document from inDesign heaving its page the same color image as background and variable data. The document exported as pdf. Because of this method the file has very little size (about 3MB). The acrobat print engine take the image once and the resulted pdf does not using a copy in every page but share it (very cool).
    The problem that I have is that when I print this pdf using the windows postscript drivers of my industrial printer (Xerox) then it takes very long time to ripp. I think that even if the pdf has only once the image the windows drivers does not understand this and send the image with every page.
    I discussed this with someone and told me to print the pdf directly to the printer without the interference of printer's driver. As an example he mentioned that when we have a postscript file we do the same to print it (otherwise the postscript code will be printed) using a command line like lpr and put as an argument the IP of the printer (or using some tools for this like the free PrintFile but tghis is only for postscript files).
    Could someone explain to me what he meant? And how is the syntax of the lpr?
    Thanks in advance

    Do you mean that the information for the label is huge on a letter or A4 page and you want to shrink it to the size of the label, or do you have a small region that you want to print to the label? Your work flow is not coming through at all and it is hard to help as a result.
    If you have a label size print on a large page, then crop the page to the label print. Then go to the print menu, select the label paper, set shrink to fit, and print. At least I think that is what you are looking for.

  • Recently bought new printer. All works fine with one OSX user. However, cannot print anything on other OSX user, including cannot print Adobe PDFs or to new printer. Puzzling!

    computer = Mac PowerPC G5
    OS = 10.4.11
    Adobe Acrobat 7
    HP laserjet M1212nf
    I recently bought a new HP printer. I was on an admin user when I installed it. All works fine with this admin account/user. I can print to the HP, print to Adobe PDFs.
    However, when I then go over to another user account, I cannot print *anything*. I cannot print to Adobe PDF, cannot print to the new HP. If I try to print an excel file, it says "cannot communicate with the printer" along with some useless suggestions. If I try to print a page on FireFox, nothing happens. That is, sure I get the usual dialog box, click the appropriate choice of printer, click the number of copies, then click the OK button ... and nothing happens. No pdf process is started. Nothing is sent to the HP printer.
    The fact that both printer options are not working suggests it is some kind of OS problem, not specific to either printer "device".
    Any assistance is appreciated! Thanks!

    Hi BDAqua,
    Thanks for the suggestion. I'm a bit leery of trying that. I would think that if the driver was not installed, then none of my users could use the printer. However, both admin users can use the new printer. The list of available printers is:
    Adobe PDF 7.0
    New HP Printer
    I also used to have Old HP Printer, which I  removed. Before, Users A, B and C could use both the Adobe PDF and the Old HP printers. Then, after I added the New HP Printer, it showed up in the list of printers for all three users. However, after I added the new printer, only the two admin accounts, users A and C, can actually print anything. Both users A and C can use the Adobe PDF printer AND the New HP Printer. But I get error messages with user B, for both the Adobe PDF printer and the New HP Printer.

  • How do I print a pdf file that is printing too light to read??

    I have a pdf that I must print to buy a home.  It will not print as is. I shot screen shots, brought them into Photoshop, made them jpgs and adjusted the gamma to make them very black and white. 
    It helped but the pages cannot be read. There is plenty of ink in the printer.
    I need to send this paperwork tomorrow with a check...
    WHAT TO DO?

    I have this problem as well, prints come too light out of my Brother5370DW and consulted several channels on internet. Printing from pc was never a problem, only from mac: jpgs, tifs, txt, from Preview, Safari, Firefox, Photoshop, Acrobat etc whenever the document it was not full b/w. Especially screenshots from Google maps were just illegible. I just tried to print a pdf with dark grey text, very light as well. Then it ocurred to me to change the color matching profile in the printer's dialogue window: instead of automatic (which is Adobe RGB (1998) by default, I choose Black & White, and finally it prints fine: black what is supposed to be black, idem for dark greys, light greys.

  • Printing a PDF file over pre-printed template

    I would like to be able to print a PDF file (file A) over the top of another PDF file (file B ). For example, file A could be a letter that needs to be sent out and file B could be the company letterhead. The resulting file would be the letter on company letterhead.
    I need to be able to do this because I am printing from an application that allows limited customization of the output format. Having the ability to print one file over another would enable me to create a "pre-printed template" in an application that has more flexibility. I could then add the data from the first application over the top of the "pre-printed template."
    I am using Acrobat Professional 7.0.9 on a Windows XP Professional system. If necessary I can upgrade to a more recent version of Acrobat.
    Thanks for your help

    I would like to do this all electronically. I don't produce a hard copy at any time but rather create the PDF and then email the file to the recipient.

  • When I print a pdf all the numbers print as solid black blocks

    I have a material supplier email me my invoices as pdf's, and recently when I try to print them, all the numbers and letters print as black rectangles

    What operating system do you have? Printing from email provider or Adobe? What printer? Printer connected USB/wired/wireless? If you print a PDF file that is not from the material supplier, does it print properly?
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • After installing an update to Acrobat on my Windows computer, the option to print to .pdf disappears from my printer options menu in all programs.  What can I do?

    This is the second time I updated my Adobe Acrobat X Pro program and the option to "Print to .pdf" disappears from my word processing program and all other programs I am running.  Last time I uninstalled Acrobat and reinstalled and that fixed the problem, but that was a long process.  Is there any other way to restore the option?

    Do you mean there is no Adobe PDF printer listed? You can check the Start>Devices & Printers list and be sure it appears there.

  • Can't print from PDF files to desktop printer (CS3)

    I installed CS3 about 8 months ago and recently have been having issues printing PDF files to a desktop printer from Acrobat and Reader. All other documents are able to print to this printer (including other CS3 software).
    I get an error that says:
    "Unable to start print job. Is printer available?"
    If I open the same PDF in illustrator or Photoshop it will print, but obviously this is not ideal for multiple page pdfs. The same error happens from PDFs created by me as well as others.
    My first thought was to reinstall Acrobat, but seems this isn't possible without reinstalling the whole suite...
    Any ideas?

    rooster56 wrote:
    I'm using network magic basic w/Linksys router.  My Dell printer shows up as being shared but I don't know how to access it from my laptop.  Even tried to hard wire the printer to the router but network magic doesn't find it in order to add the device.  Thanks for any help.
    Hi rooster56,
    See thi post: http://forums.linksysbycisco.com/linksys/board/message?board.id=Network_Magic&thread.id=18
    Also note, when you plugged the Printer into the Router, you need to install the entire Printer Software package into each operating system that you want to print from. It can't print unless the software for the printer is installed.
    thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
    Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router.

  • When I Print a PDF, Adobe Reader X Prints Doc As A Very Small Version

    I have a Lexmark Interact S605 All In One Printer.  When I scan documents as a pdf, and go to print, the actual document does not even fill the page.  In fact it's a very small version of the document in the middle of the page.  How do I somehow change the Page Scaling to "Fit To Printable Area?"  It's embarrassing when I send these documents out to clients and they come back to me and say that these pdfs are very small on the page and do not even come close to filling up the entire page as a pdf should.  Are there settings that I can change so that when I print a pdf, it will Fit To Printable Area each time???  Thank you in advance for any help on this question.  [email protected] 

    Try deleting the Adobe plugin and use the built in Preview. Hard drive level Library/Internet Plugins. If it isn't there, check your user Library.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library.

  • Printing a PDF Object to Label printer from AS Java

    Hello,
    at the moment I am looking at a requirement to print from a Java application in a standalone single stack AS Java installation. Currently I would like to use the Adobe Document Services to print to a label printer (e.g. Zebra). This should all be done on the server side.
    What I've found that there are hints how to do that using a FM in the ABAP stack. But a ABAP Stack is not available.
    Any hints would be appreciated.
    Kind Regards,
    Christoph Mertins
    Edited by: Christoph Mertins on Apr 28, 2010 3:45 PM

    Have you checked to see if the "Print As Image" option is inadvertently checked? In the Print dialog, click the Advanced button then look for the checkbox.

  • Acrobat Pro 8: When I print to pdf I get windows print error message

    This just started happening when I installed my acrobat professional 8.0 on my new computer (with Windows XP Pro). Everything works fine, but when I print a document to .pdf, I get that windows printer pop-up message that says that it was unable to print. As a consequence, I get a bunch of allegedly unprinted documents in my printer queue that I have to keep deleting. This is more an annoyance than anything else, but can anyone tell me how to stop this from happening??
    THanks.

    OK, I'm still not sure I'm getting this, but I printed to file, and then opened the prn file in Acrobat Distiller. The actual pdf file was not in the folder, but I could open it with distiller.
    The message below distiller said: tart Time: Tuesday, January 20, 2009 at 13:03:04
    Source: retainerpetitionreview.prn
    Destination: C:\Documents and Settings\Mark Markus\Desktop\retainerpetitionreview.pdf
    Adobe PDF Settings: C:\Documents and Settings\All Users\Application Data\Adobe\Adobe PDF\Settings\Standard.joboptions
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    %%[Page: 3]%%
    %%[LastPage]%%
    Distill Time: 00 Hour(s) : 00 Minute(s) : 00.265 Second(s)
    **** End of Job ****
    However, when I just print "regularly" (not, "to file") the pdf file is saved and generated, but I get that popup error message, which stays in my printer queue, saying that there was an error printing to LPT 1

  • I cannot print a PDF using the Adobe printer.

    I have been using the PDF printer for years on the same system (Windows Vista Business using Acrobat v8), but now it won't create a PDF document from any program (Firefox browser, MS Outlook mail, MS Word, etc.).  I can start the print process, and it gets to the Creating PDF screen then finishes but doesn't show the results and no document was created.
    I just downloaded a new version 8.2.5 but that didn't resolve the  problem, so I uninstalled all and reinstalled the program from a disk, then downloaded  multiple updates until I'm back to the current v8.2.5.  The Printing Preferences were reset to print to the default Output Folder, and I changed that back to my usual location, though I've had to change that in the several locations offered but it's still not saving it; could this be related to the non-print issue?
    The Printer is called Adobe PDF, the Driver is called Adobe PDF Cconverter.  I thought maybe the Driver got corrupted but I can't find  the Drivers on this site.  Please help!

    Hey Daniel,
    Have you tried repair Adobe Acrobat DC?
    If no, then please repair the installation under Help menu.
    This could also happen due to an Adobe Acrobat DC installation file corruption. To resolve this issue :-
    Uninstall Adobe Acrobat DC using the Acrobat cleaner utility.
    Restart your computer.
    Re-install Acrobat Acrobat DC  Download Adobe Acrobat free trial | Acrobat Pro DC.
    Let me know if the issue persist.
    Regards,
    Aadesh

  • I cannot print anything with FF. It is not the printer as it is the same if I print to pdf factory. The print preview on both is also blank. I have no problem with any other browser.

    I am unable to print anything through FF. I have tried the printer and also to pdf factory. Both result in blank pages being printed and also blank print previews. I am using FF 5.0. I have no problem with IE, Chrome or Safari. In order to print from FF I have to copy the text etc and paste into Word.

    '''I have updated to FF 6.0 and this seems to have resolved the problem'''

Maybe you are looking for

  • Capture ssh sessions in the background

    Hi together, i would like to capture all ssh-session (hidden in the background) on a solaris 10 server. I hade some tries with /usr/bin/script -a <somewhere> in the .bash_profile but this is not what i need. e.g. "exit" exits the script and not the s

  • Copy email from outlook/thunderbird into adf screen

    Hi I would like to create a screen using jdeveloper/adf 11g where the user can fill in some information and drag and drop an email from a mail client e.g. outlook or thunderbird to the screen and have the information provided by the user and the emai

  • DTMF Tones

    I hope this may help some peeps on here, it has worked for me, we use a remote dialling code to divert our office landlines to mobiles, we have had awful trouble with the iphones in doing this with the number stored as a contact, We also have trouble

  • Is Premiere Elements 11 compatible with Blackmagic Intensity Shuttle USB 3.0 ?

    I have an Intensity Shuttle from Blackmagic to Capture  Video and  Audio through USB 3.0 Is this divice compatible with Premiere Elements 11 ? Thank you for your help

  • Robohelp and Office 2003 suddenly not working

    Hi. I'm working in the IT department for my company. I don't use Robohelp myself, but one of my collegues do. I'm trying to figure out why his Robohelp with Office 2003 suddenly stopped working. Seems like there may have come an Office update that Ro