printing multiple seperate web pages from one button

Posted on 2004-11-23
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
    LVL 5

    Accepted Solution


    You can use HTMLDOC [] to convert HTML to PDF.

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

    LVL 1

    Expert Comment

    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

    The website that we have uses ASP.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    733 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

    24 Experts available now in Live!

    Get 1:1 Help Now