Kotans, hello everyone. The task is to print a bunch of pages, highlighting several checkboxes and pressing one button. I want to simplify the work of technical departments in many branches. Now those. departments print each page separately, which takes a lot of time.

window.print(); //На каждой отдельной странице. 
  • Why not print all pages on one? - zb '
  • one
    A primitive and wild way came to my mind. After selecting checkboxes, you just need to create a page that will contain a list of iframe / frame, one for each page. This can be done even on the left site. - KoVadim
  • As an option, but the wildness is yes. - Denis Sultanov

2 answers 2

As I understand it, there is web documentation with page navigation. The task is to select the necessary pages (or page ranges, or section / s) for printing by checkboxes. You will need a script that will send Ajax an array with the addresses of the pages to a separate block that will print the page and then reload the page to the next in the array by passing the POST array to the list of pages and indicating which page will be next. On all pages (or only in the index if you have a CMS) insert an event interceptor to start printing.

    I highly recommend not to print html pages. A lot of nuances depending on the browser, etc. In general hell. Translate everything into pdf and print it. The result will always be the same.

    • pages are simple, there is nothing terrible. - Denis Sultanov