Automatic pdf print from a servlet?

Hi..I have a one servlet that displays a pdf file in the browser (IE). Under normal circumstance, the user would print the pdf from the Acrobat Reader toolbar displayed within the browser. Well now, the user wants to have the pdf file printed automatically, because it is "too confusing" to choose between the browser print button and Reader's! My idea is to have the servlet contain a method for handling pdf print. Any ideas on an existing API or if this can even be done? Thanks!!

I ran into a similar situation recently and found one cheap (smells a bit like a hack) option to give the illusion of direct printing. If you embed Acrobat Reader as an object in your page then you can give it a width and height of 0, effectively hiding it. Then use the print() function to make it print from your own button in the page. Something like this:
<OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=0 HEIGHT=0 ID=MYPDF>
<PARAM NAME="SRC" VALUE="/servlet/MyServlet">
</OBJECT>
Then a button on the same page can make the pdf print.
<BUTTON name='printButton' onClick='MYPDF.print()'>Print</BUTTON>
Your confused users still have to choose that button however -- I don't think you can override the behaviour of the browser's print button.
I've heard of some plug-in called ActivePDF that might also help you but I don't know much about it (do a search).

Similar Messages

  • Print to Adobe PDF printer from IE 7 crashes computer

    I apologize if this has already been answered somewhere in this forum, but I could not find mention of it....I have several users inside my company and out that are having issue with printing to the Adobe PDF printer from a webpage viewed in IE 7...the computer inevitably locks up and requires a restart. It seems to vary based on the version of Acrobat or Reader they have installed, but am wondering if anyone knows of the cause and resolution? It would seem to be a battle of Microsoft Operating System versus Adobe. Most users are on Windows XP Professional, using Adobe Acrobat and Reader 8 or better. Those with 6 do not appear to have issue.
    Have been circling around this problem for a month now....any help much appreciated!

    I think it's time to upgrade. 64-bit systems weren't much in use at the time of Acrobat 8.0.

  • I want to have a unique reference appear on the footer of each printed version of a pdf printed from my website - is this possible?

    I want to have a unique reference appear on the footer of each printed version of a pdf printed from my website - is this possible? If so which version of Adobe do i need?

    If you want it to maybe happen some of the time, if people use the right browser and software and system, you can use JavaScript.
    If you want it to happen reliably, you need server software to add the stamp before the file is served, integrated into your web site's CGI/ASP/PHP or whatever. Probably not an option with shared hosting.

  • Accidently deleted the Adobe PDF printer from the Printer List

    Hi Guys,
    I have accidently deleted the 'Adobe PDF printer' from the Printer List and am now unable to print any files to PDF from any application.
    Any ideas of how to get it back?
    Cheers, Nosaj68.
    Power Mac G5   Mac OS X (10.3.9)  

    Hi Nosaj68
    Welcome to Discussions.
    1. In Applications/Utilities/Printer Setup Utility, select Add printer and reinstall it.
    2. If you can't find this file, reinstall Adobe Acrobat and that should put it back again for you.
    If this solves your question, please consider awarding stars, by checking the helpful or solved button on the post. This is not a requirement, merely an expression of thanks.
    regards roam

  • PDF Print from joomla

    Hello everybody
    I am newbie and dont know much about PHP coding.
    Now i have a design for a Calender and I am using joomla for my website. In joomla i have a component names Eventlist.
    So what i want to do is, to print all the events of everyday as PDF on my Design.
    Can anyone help me or explain me what to do.
    Is it possible to install Acrobat on my website?
    I will be thankful to everybody here.
    Regards

    I ran into a similar situation recently and found one cheap (smells a bit like a hack) option to give the illusion of direct printing. If you embed Acrobat Reader as an object in your page then you can give it a width and height of 0, effectively hiding it. Then use the print() function to make it print from your own button in the page. Something like this:
    <OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=0 HEIGHT=0 ID=MYPDF>
    <PARAM NAME="SRC" VALUE="/servlet/MyServlet">
    </OBJECT>
    Then a button on the same page can make the pdf print.
    <BUTTON name='printButton' onClick='MYPDF.print()'>Print</BUTTON>
    Your confused users still have to choose that button however -- I don't think you can override the behaviour of the browser's print button.
    I've heard of some plug-in called ActivePDF that might also help you but I don't know much about it (do a search).

  • Cannot print to Adobe PDF printer from Word after upgrading to Win 7 64bit

    Hi. After upgrading my operating system from Windows XP to Windows 7 64 bit, I can no longer print to the Adobe PDF printer (e.g. from Word). It just sits in the Adobe PDF printer queue saying "Error" without bringing up the "Save As" dialog box, and nothing happens. I am running Adobe Acrobat 8.0.0 (I've checked for updates but it says none are available). I have tried doing a repair installation following the instructions on this website (http://helpx.adobe.com/creative-suite/kb/error-file-adobepdf-dll-needed.html) but to no avail.
    Thank you in advance for your help.

    I think it's time to upgrade. 64-bit systems weren't much in use at the time of Acrobat 8.0.

  • Avoiding the 'Save PDF File As' dialog when printing to the adobe PDF printer from a service

    Hello, can someone please help.
    I have Adobe Acrobat 8 Pro installed.
    I have an in house application which (among many other things) effectively monitors a directory and prints the file to the default printer. It works fine when run as an application.
    I have set the defaults on the Adobe PDF printer to put the output PDF file into a directory and not to open it so it works silently without prompts.
    When I run my application as a service, it brings up the 'Save PDF File As' dialog and I would like to avoid this. My impression is that if I put the right registry key in then it will work.
    I do not want to do any scripting if I can avoid it.
    Thanks for all constructive help given.

    Thank for your help Bill, but changing settings in the distiller did not seem to work. As my application prints directly to the default application without using anything specific to Acrobat, I was hoping there was a simple way forward. A colleague suggested copying registry entries from the account I logged on as to the S-1-5-18 entry, then rebooting. This had no effect as the prompt still comes up.
    Aandi, I don't have the Acrobat SDK or any experience of it.
    Also I'm not sure where any code/script would sit since the application is stable and so I would rather not change it.
    If it amounts to a few lines of javascript sitting outside the application then that would be of interest.

  • PDF prints from Acrobat 8 Pro, but not from Acrobat 9 Pro

    I have a PDF that prints fine when I print from Acrobat 8 Pro, but when I open the same PDF in Acrobat 9 Pro, only portions of each page actually print out.
    All systems running Windows XP Pro, SP3
    A8P 8.1.2
    A9P 9.1.1
    Any ideas?

    Well, for those following this thread or needing a solution, I found a work-around though I'm still not sure why the initial problem exists.
    In Acrobat 9 Pro, once you have the main print dialogue box open, follow the steps below:
    1) Click ADVANCED
    2) Select PRINT AS IMAGE
    3) Set DPI to 300
    4) Click OK
    5) Make any other typical print setup adjustments as you normally would and finish printing as usual

  • Vertical Lines in PDF printed from ACAD?

    Hello all,
    I've searched and searched and have found nothing, others are also having this same issue but haven't found a fix.
    Issue: In ACAD I have a TIFF image inserted and i am printing to PDF. When I open the PDF there are vertical lines that show up and also print out. If I print from ACAD to the printer the vertical lines do not show up so I do not believe this is caused by the TIFF image (I've been wrong before though). Is there any setting that would turn these vertical lines off?
    I'm using Adobe Acrobat 9 Standard.
    Thanks!
    Jeff

    Here is an image of the PDF. As you can see there are vertical lines and they do print out. Anyone know why?

  • Hi in ecc 6.0 version - it is possible to get pdf print from list.

    Hi,
    In ECC 6.0 it is possible to print the pdf format  from o/p.
    PLs resolve this problem
    Regards ,
    Rani.

    hai.
    check the links.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/47a2be350c4ac8afe36b691203971f/frameset.htm
    regards.
    sowjanya.b.

  • PDF Printing from APEX 4.0

    Hello
    I have a requirement to create PDF reports from websites created using Apex and /or PL/SQL. The reports are a mixture of formatted text, pictures and charts.
    Using BI is not an option due to the cost.
    What do you recommend and where are I find simple instructions to follow (I lhave imited system / DBA skills).
    Thanks for looking. All help very welcome
    Regards, Pete

    There are multiple options..
    If you want a BETTER RESPONSE, please include the following information in your questions here:
    Version of APEX?
    App Server being used?
    Browser being used?
    Why this is important is, there are FREE plugins for APEX 4.x that will produce PDF's. There is also FOP which is included with APEX as a free print engine..
    Thank you,
    Tony Miller
    Raleigh, NC

  • No pdf prints from win8.1

    Can't print PDF's from Adobe reader.
    Its only pdf's - all others prints word, excel and outlook are printing fine.
    Changing to different printer wont help.
    Both Adobe Reader CD and 11.0 have this problem.
    "Print as image" is not helping.
    OS: windows 8.1
    Printers: bizhub C652 + bizhub C284
    reinstalling print driver with a reboot clears the problem but it come back after some time.

    No, you can't even see its trying to create the print.
    This box is not coming.

  • Why can't I print to the desktop PDF printer from a PDF file?

    I don't know how much more info I can provide.
    Sometimes I want to print one page of a multi-page .PDF document (to the desktop pdf printer) and it looks like it goes, but never appears on the create adobe website.

    The CreatePDF Desktop Printer has been retired. Please see https://forums.adobe.com/docs/DOC-5131 for more information.

  • Today's Update Screwed up PDF printing from Word

    Todays adobe update (6/20/11) somehow screwed up my Adobe Printer Driver and now I can not print to PDF files.  I've tried re-installing Adobe-X with no change in the ability to print to PDF.  Any ideas?

    Try the steps  recommended in this thread: http://forums.adobe.com/thread/791587. Here is the short version:
    1. Delete the PDF Printer
    2. Use Control  Panel / Programs and Features to repair the Acrobat installation
    3. Then reboot Windows and see if the problem is fixed

  • Problem creating a PDF print from webpage

    When printing a pdf using Adobe Acrobat 9.5.5. from a secured webpage (IE 9.0.8...), I get unreadable characters in the printed document. Can anybody help me out here?

    It may be that some of the characters can not be embedded in the print (or you were using a wrong setup). Check the PDF properties to see what properties of the fonts exist.

Maybe you are looking for

  • Product costing on sales orders

    Hi all, does anybody know where i can search a cost estimate that is not in KEKO? I have a record in EBEW with a progressive number in field cost estimate, but this cost estimate doesn't exist in KEKO. Thanks, Regards

  • Can't see whole song title in search

    is there a way to widen the width of the title columns in the itunes store so that you can tell if a song is a remix or not before you buy it? also I don't seem to be able to sort a list that came up for a search by anything other than relevency.

  • Solaris 10 u11 : Is it possible to mix IPMP with vertual network interface

    Hi I have a system with 4 Ethernet interfaces , I'd like to try to have virtual network interface on two of them . then configure IPMP between each two. - Is it possible to mix IPMP and VNIC ? - online , I found posts about having vnic on solaris by

  • Force Customer (Party) Names to Uppercase

    Hi, I'm currently trying to force all customer (party) names to uppercase, even if they have been entered as mix-case: i.e. Oracle will become ORACLE. EBS: 12.1.3 To try and accomplish this, I'm doing the following: - Login as Trading Community Manag

  • My ipad keeps closing my programs

    my ipad keeps closing my programs