printing multiple seperate web pages from one button

Currently, I am trying to create a way to print several seperate web pages by hitting one button. I know that the button is probably going to have to make each page print to a pdf, store that file somewhere, and then combine them into a master pdf and print that. I don't know how to do this though. I am hoping there will be an easier way or that at least some coding help for the first solution.
officerhandsomeAsked:
Who is Participating?
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.

ddunleaCommented:
Hi,

You can use HTMLDOC [http://www.htmldoc.org/] to convert HTML to PDF.

If you still need to concatenate the files after that, you can use one of these:

http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html
http://www.accesspdf.com/pdftk/

Regards
0

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
gagaliyaCommented:
You need some type of serverside script (asp, jsp, php) to do this efficiently. It is very easy to do using any one of them.

When the print button is clicked, goto the asp/jsp/php page, within the code of the page make calls to all the pages you want to print and grab their html. You can then generate a html dynamically by combining all those pages via string concatenation then invoke a javascript print method to print automatically.

If you know which of serverside language(php/asp/jsp) you are using, i can provide with actual code examples. Or you can ask in their respective sections.

I am not sure what you mean by converting to pdf and back, that seems very silly just for printing multiple html. Unless your question was you want to convert multiple html to pdf.

 Or if you mean just to print multiple html pages for yourself locally, then just view source and paste all the code into 1 big text file, delete the extra <html><head<body> tags, save as html, open in browser, and print :P
0
officerhandsomeAuthor Commented:
The website that we have uses ASP.
0
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
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.