We help IT Professionals succeed at work.

Print embed PDF in Firefox

maisonlaprise
on
Medium Priority
1,687 Views
Last Modified: 2013-12-07
Hi,

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 :
            document.getElementById('embedName').print();

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.
Comment
Watch Question

IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
Perhaps put the print button on the PDF instead.
A PDF can print itself

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.