Print embed PDF in Firefox

Posted on 2009-02-17
Last Modified: 2013-12-07

What I do :
- Open a pop up with a page that contains an embed tag, the source is a pdf file
- I have a button who calls this javascript function :

In IE, it opens the adobe print dialog and everything is perfect. In firefox, the error console tells me that print() is a not a function.

I read somewhere that Mozilla had problems with Adobe and they don't support such calls.

Is there any way around this? I really need to print this from an embed object.
Question by:maisonlaprise
    LVL 75

    Accepted Solution

    Perhaps put the print button on the PDF instead.
    A PDF can print itself
    LVL 2

    Author Closing Comment

    It makes sense.

    The only problem is that my pdf is created from a crystal report so I would have to draw a button on the pdf itself after it has been generated. The free pdf library that we use for pdf, pdfsharp, doesnt do that. We would have to pay for a better library to be able to draw a button I think...

    Thanks anyway.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now