Learn how to a build a cloud-first strategyRegister Now


printing multiple seperate web pages from one button

Posted on 2004-11-23
Medium Priority
Last Modified: 2010-08-05
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.
Question by:officerhandsome

Accepted Solution

ddunlea earned 2000 total points
ID: 12653403

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:



Expert Comment

ID: 12657617
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

Author Comment

ID: 12668780
The website that we have uses ASP.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

864 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