Is it possible to print a pdf file served to the browser?

I have a servlet that will send a pdf file to the browser (IE), (i set the content type to "applicaction/pdf"). Now I need a way to create a print button to allow user that option, seems the browser print button is not satisfactory. Can a pdf be embedded in a web page somehow? Sounds like I would be dealing with 2 different reponse types "application/pdf" and "text/html"..I think the print button would call a method doing some extra things other than what the browser print button does. Is this possible? Thank you

found an answer..thanks

Similar Messages

  • Hello, i've win7 64bit and can use my adobe acrobat 7.0.0.2004121400. but it is not possible to print a pdf - error 20225 at the installation of acrobat. any ideas how to solve this problem? I've tryed some instructions from internet concerning this 20225

    hello, i've win7 64bit and can use my adobe acrobat 7.0.0.2004121400. but it is not possible to print a pdf - error 20225 at the installation of acrobat. any ideas how to solve this problem? I've tryed some instructions from internet concerning this 20225 error, but without success. thanks a lot and best regards

    BS heißt "Bull___****". *lol* "Betriebssystem" heißt imemr noch "operating system". GoLive wirste wohl gar nicht zum laufen kriegen. ohnehin würde man es nicht mehr verwenden, weil es noch nicht mal CSS2 voll unterstützt geschweige denn HTML 5 und andere moderne Webstandards. Wenn überhaupt, dann findeste vielleicht noch 'ne OEM CD von Strato oder 1und1 bei eBay. Die haben das damals mit jedem neuen Hostingvertrag rausgehauen. Aber wie gesagt, es ist den Aufwand nicht wert. Illustrator sollte sich durchaus installieren lassen. Eventuell einfach nochmal die Installer im Win XP Kompatibilitätsmodus laufen lassen...
    Mylenium

  • Is it possible to edit my PDF files online with the best quality and Security?

    I want to convert my PDF files online with best quality and Security.
    Is this possible that I can edit my PDF files online? if yes, please tell me how and where I can convert it.

    You could try this service here, this improves security once you have a PDF ready; http://bookguardpro.com/
    There is also a Protect PDF blog that shows you how to boost your PDF security; http://bookguardpro.com/protect-pdf-blog/

  • PDF file display on the browser

    Hi,
    I am using struts DispatchAction to display the existing file (on the server) on the web browser. My code works on FireFox and Google Chrome. But displays empty screen when executed on IE. Please refer to the Action class and kindly help me out what am I missing in the code inorder to work on all browsers.
    Page Access URL: http://localhost:8080/pdfWeb/showpdf.do?action=displayPdf
    Action Class
    public class BaseAction extends DispatchAction {
         public ActionForward displayPdf(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
         String filepath = "/test/pdf/sample.pdf";
         //For Local:
         String baseFolder = "/Users/raghu/Documents/Shared/personal/Final_Out";
         String contentType = getServlet().getServletContext().getMimeType(filepath);
         response.setContentType(contentType);
              //New
         response.setHeader("Expires", "0");
              response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
              response.setHeader("Pragma", "public");
    OutputStream out = response.getOutputStream();
    byte[] pdfContent = this.loadFile(baseFolder + filepath);
    out.write(pdfContent, 0, pdfContent.length);
    if (out != null) {
    out.close();
              return null;
         public static byte[] loadFile(String sourcePath) {
         byte[] output = null;
         InputStream inputStream = null;
              try {
                   inputStream = new FileInputStream(sourcePath);
                   output = readFully(inputStream);
                   if (inputStream != null) {
                        inputStream.close();
              catch(IOException ioex) {
                   //Handle Exception
              return output;
    }

    We've had a number of IE related issues displaying PDF files. The first is that IE, rather than paying much attention to Mime type, still looks for extension names in the URL. Nasty as it sounds, it's sometimes necessary to ensure that your URL ends in ".pdf". It may be enough to append "&x=.pdf" onto the URL (which should have no significant impact).
    (Another is that some versions can't write a new PDF to an existing window already showing an old one).

  • How to Print a PDF file and Close the ACrobat Reader opened using WEBUTIL

    Hi All,
    I have used WEBUTIL successfully and printed files using webutil_host.nonblocking builtin. What happens is that after printing the file the Acrobat reader stays on the desktop of the client PC. How to close that file opened programmatically. I am unable to close it using any any commands or using following builtins from WEBUTIL.
      WEBUTIL_HOST.RELEASE_PROCESS(PROCESS_ID)
      WEBUTIL_HOST.TERMINATE_PROCESS(PROCESS_ID);My command to directly call the Acrobat reader file and print it is by using this command.
      M_STR_COMMAND    := 'cmd.exe /c start AcroRd32.exe /t '||CHR(34)||FILE_STR_PATH||'\'||FILE_NAME||CHR(34)||' '||CHR(34)||PRINTER_NAME||CHR(34);Help in this regard is much appreciated.
    Thanks in advance

    I think if you use the start-command, the execution is asynchronously and you won't get the correct process-id. Try to execute Acorbat directly without the cmd /c start in front of it.

  • Why can't I print out PDF files downloaded from the internet?

    Such as medical files, applications, etc. They just end up as an "error" in my printer queue. I have used four different printers and three differnt iMac computers. Same problem. What is UP? Do I have to convert it? Becxause, when I do -- and it so graciously "allows" me to -- it reformats and looks like a transmission from the nearest five year old. Thoughts?

    Assuming that you're talking about printing from Adobe Reader for iPad or iPhone, you either (1) need an AirPrint-enabled printer, or (2) (for the iPad only), purchase a third party app like Printer Pro from Readdle.
    Here's a list of AirPrint-enabled printers:
    A List of Printers with AirPrint (updated March 2013)
    If you're talking about printing from Reader on your laptop or desktop computer, you're in the wrong forum.

  • Printing a pdf file via OLE

    Hi,
    Is it possible to print a pdf file i.e. test.pdf via VB using the properties/methods held within theACRORD32.DLL? or is this only possible if you have the full adobe Acrobat product installed?
    If possibe any example code would be helpful.
    Thanks in advance

    Thanks for this, having a look through at the moment, just one question do I have to install this SDK just to automatically print an existing PDF document from a 3rd party application when I have only the Reader installed?
    Thanks

  • Printing  a .pdf file by javascript?

    Is it possible to print a .pdf  file  by javascript function or Adobe javascript and how ? I hope that one expert can share me a sample javascript function.
    Thank you very much in advance.

    Hi, thank you for your answer.
    Is it possible for me to reference Acrobat javascript api inside asp.net web application and how ?
    Thank you  and I appreciate your help.

  • I can't print my PDF files

    can't print pdf file

    Hi sail8,
    I'm sorry that you're having trouble printing your PDF file. Is the problem specific to one PDF, or are you unable to print any PDF files?
    We'll need a bit more information to help you solve this issue, so please let us know the following:
    What you're printing from (Adobe Acrobat, Reader, a browser).
    What operating system you have (Mac OS or Windows, and version).
    If you're printing directly to the printer, or over a network.
    Whether you get an error when you try to print, and what that error is if you do.
    I look forward to hearing back from you.
    Best,
    Sara

  • Can we silently print a PDF file programmatically without opening Adobe Reader using DDE messages

    Hi,
    Can anyone help to solve this.
    I want to silently print a PDF file without opening the Adobe reader window.
    Thanks,
    Chandu. G.

    I would like to do that same thing.  Did you ever find an answer to this question?

  • Print a pdf file from sap

    Hello,
    I'm looking for a way to print a .pdf file from sap . The file  was created manualy and is in a newtwork folder.
    I have to send the print to a network printer . Is it possible to use the AcroRd32.exe as a command line?
    Thank you.

    hii,
    try this
    CONVERT_OTFSPOOLJOB_2_PDF
    http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm
    PDF - Printing a PDF file from ABAP or SAP Script
    regards,
    Sri.

  • Is it possible to Print a PDF as a PDF in Acrobat 11.0.06 on Mac OSX 10.8.5?

    Is it possible to Print a PDF as a PDF in Acrobat 11.0.06 on Mac OSX 10.8.5?
    I need this functionality. Adobe PDF doesn't appear in the printer list as it did on my windows laptop. I need to be able to print to the PDF "size" of 8.5 by 11 to shrink files down for e-mail. My workflow usually goes like this:  I import all the pictures or create a PDF from multiple files (pictures), I then put them in order  and then print to PDF, two pictures to a page. I can take a 50MB file down to a 1MB file this way. Makes it easy to view on smartphones and the like.
    Is this functionality still broken in Acrobat 11? Did I just waste my money? This was the only reason I bought the latest version - It wouldn't work on 9 Pro either.
    Thanks,
    Jon

    Thanks Tony. That is exactly the functionality I am not getting from the current product on Mac. 
    You can get a much better looking result that takes up way less space and opens faster for the end user by printing a PDF as a PDF and controlling the size of the PDF image. I can take - for instance, 6 or 7  10MP pictures and create a PDF out of them. The PDF will be 25MB or so. I can print that as a PDF which will allow me to put two pictures per page  - and that file will be about 1 MB. No crappy looking images, just much smaller size and multiple images per page. 
    It's a workflow I have used for years on PC.  Everyone keeps saying just save it as a PDF using the Mac print "save as PDF" functionality but that doesn't accomplish the same thing and you can not control how many pages to print on to each new page of your PDF. 
    I find it misleading that I saw a web page on Adobe's site that shows you can print as a PDF and it says you can print as a PDF on Mac and that is NOT the case.  Print to PDF Windows 7, Vista, XP, Mac | Adobe Acrobat XI Infuriating.
    I have tried to optimize a PDF with 6 or 7 images and it just doesn't do the same thing. It wont reduce the size as much as I need, cuts it in half - but not down to a small fraction for being an e-mail attachment. I'm using XI Pro. Researched this for about 3 hours and it is not functionality that can be used on a Mac.
    I even tried printing as a PDF in Parallels on XP with another licensed version of Acrobat Pro and it still wont let you. You would have to probably dual boot your machine to get the functionality by running windows flat out on the Mac with a separate Licensed copy of the software.
    It amazes me that Adobe can't figure this out or make amends with Apple to get the functionality back into Acrobat.

  • Print a pdf file with dot matrix printer epson lx 350

    Hi  every body, I've a problem with my dot matrix printer. If i want to print a pdf file, the writers are not in a good format. please help me.
    Excuse if question is not correct it's not depend for me because i'm not an english but french. Thanks!

    Bonjour je m'excuse beaucoup pour poster dans un premier temps en anglais. Je ne savais pas que c'était possible en français.
    Voici mon problème: J'ai une imprimante matricielle de type EPSON LX-350 et je souhaite imprimer des fichier PDF (Adobe reader). Mais la police qu'elle sorte est différente de celle attendue après impression et pourtant avec un fichier Word ou Excel je n'ai pas ce problème de format de police. Alors la question est: est t-il possible d'imprimer sans probléme avec une imprimante matricielle un fichier PDF si oui qu'est comment doit procéder. Existe t'il quelqu'un qui l'a déja essayer et avec quelle marque d'imprimante.
    Merci de votre disponibilité.

  • How to print a pdf file on a servlet

    Hi,
    I have a question, is it possible and how to send to a local printer a pdf file with a serlet ?

    the lengthy thread on this topic from "advanced language topics" seems to have been lost in the renaming. There's a lot of discussion there so it may be worth your doing a thread search for "printing" and "binary" together as they formed part of the thread title.

  • Printing Adobe PDF files through Airport Extreme

    I am trying to print Adobe PDF files to my HP5900 through an Airport Extreme. I can print other types of files (ai, eps, qxd) but i am unable to print PDF files. When i hit "print" the rainbow wheel starts spinning and it just gets stuck forcing me to force quit. Has anyone else had this problem? Does anyone have ideas for a solution? Thanks
    Power Mac G5   Mac OS X (10.3.9)  

    Have you tried printing the PDF from more than one application (just to eliminate the possibility of an application problem)?

Maybe you are looking for