How to print whole page containing pdfs at once?

Hi Experts!

As in title, I want to print a page containing pdf files, images, text etc. at once with one print button, for now when I print the page, it prints everything except pdf files, then I have to print each pdf individually and it's not easy with 20 or 30 pdfs. I don't know how to do this, but maybe drop all the files into php array or do it with javascript somehow?

Thanks for any help.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you select all the files you want printed and then right click > print?
ZadoAuthor Commented:
No, it doesn't work that way, I tried. I'm looking for a button solution, I mean: click 'print' button (javascript or html one) and then everything prints included pdfs.
Lalit ChandraCommented:
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

ZadoAuthor Commented:
Thanks Lalit, but it doesn't work for pdfs.
Guys, I'm more interested in printing the multiple pdfs here than print button itself.
The short answer is you can't do exactly what you're asking for, but you could probably come pretty close.

Each PDF and the web page are all individual objects that each require their own "print" command. The web page is printed via the web browser's layout engine, while the PDFs are printed via Acrobat Reader (or other installed PDF reader), so it's impossible to have one click invoke all the print jobs via one print prompt.

Even if you could pop up the print prompts for everything all at once, you'd end up with 30 printing prompts, which is not user-friendly (the printer queue receives print jobs one at a time).

However, I understand you want to reduce the amount of printing, so what you COULD do to dramatically improve the user experience is to offer a button that provides them with a single PDF that contains ALL of the other PDFs merged together.

Then you could use PHP to merge all your PDFs into one document and then provide that one to the user to download/print:

PDF Merge Solution #1:

PDF Merge Solution #2: (check out the bottom comment that talks about Zend PDF)

I would also recommend against trying to FORCE/auto-start the print job (in case you were thinking about it). There are a lot of PDF-capable devices that do not support printing, or computers with their default printers set incorrectly. It's the equivalent of putting a music / MIDI file on a web page and have it automatically start playing. It's a bad user experience - it's far better to give the -capabilities- to the user and let them do their own printing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lalit ChandraCommented:
yes, gr8gonzo is absolutely RIGHT.
You can instruct other objects/components to initiate Print action from inside the another component (i.e Web Browser).
Ray PaseurCommented:
Please post a link to the page you want to print.  I'd like to see what the HTML shows us.  Thanks, ~Ray
ZadoAuthor Commented:
Thanks :-)
Ray PaseurCommented:
No link, eh?  It's so much easier to help you if we can get the answers to questions we ask you.  Best of luck with your project, ~Ray
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.